Skip to content

Commit 4cb4de6

Browse files
committed
feat(core/services/gcs): Convert TOO_MANY_REQUESTS to retryable RateLimited
Signed-off-by: Xuanwo <github@xuanwo.io>
1 parent 6734787 commit 4cb4de6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

core/src/services/gcs/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ pub(super) fn parse_error(resp: Response<Buffer>) -> Error {
5858
StatusCode::PRECONDITION_FAILED | StatusCode::NOT_MODIFIED => {
5959
(ErrorKind::ConditionNotMatch, false)
6060
}
61+
StatusCode::TOO_MANY_REQUESTS => (ErrorKind::RateLimited, true),
6162
StatusCode::INTERNAL_SERVER_ERROR
6263
| StatusCode::BAD_GATEWAY
6364
| StatusCode::SERVICE_UNAVAILABLE

0 commit comments

Comments
 (0)