Skip to content

Commit

Permalink
Retry on unauthorized
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com>
  • Loading branch information
StephenWakely committed Sep 18, 2023
1 parent 0e60001 commit 99fd440
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sinks/gcs_common/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ impl RetryLogic for GcsRetryLogic {
let status = response.inner.status();

match status {
StatusCode::UNAUTHORIZED => RetryAction::Retry("unauthorized".into()),
StatusCode::TOO_MANY_REQUESTS => RetryAction::Retry("too many requests".into()),
StatusCode::NOT_IMPLEMENTED => {
RetryAction::DontRetry("endpoint not implemented".into())
Expand Down

0 comments on commit 99fd440

Please sign in to comment.