Skip to content

Commit

Permalink
fix retry on 503.
Browse files Browse the repository at this point in the history
  • Loading branch information
youngsofun committed Dec 4, 2024
1 parent 36c7353 commit 9c29596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ impl APIClient {
return Ok(response);
}
let body = response.bytes().await?;
if retry_if_503 || status == StatusCode::SERVICE_UNAVAILABLE {
if retry_if_503 && status == StatusCode::SERVICE_UNAVAILABLE {
// waiting for server to start
(Error::response_error(status, &body), true)
} else {
Expand Down

0 comments on commit 9c29596

Please sign in to comment.