Skip to content

Commit

Permalink
feat(gcs): Convert TOO_MANY_REQUESTS to retryable Ratelimited (#5551)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xuanwo authored Jan 15, 2025
1 parent 6734787 commit 78b6a9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/services/gcs/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ pub(super) fn parse_error(resp: Response<Buffer>) -> Error {
StatusCode::PRECONDITION_FAILED | StatusCode::NOT_MODIFIED => {
(ErrorKind::ConditionNotMatch, false)
}
StatusCode::TOO_MANY_REQUESTS => (ErrorKind::RateLimited, true),
StatusCode::INTERNAL_SERVER_ERROR
| StatusCode::BAD_GATEWAY
| StatusCode::SERVICE_UNAVAILABLE
Expand Down

0 comments on commit 78b6a9f

Please sign in to comment.