Skip to content

Commit

Permalink
do not retry on locked error
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Jul 9, 2024
1 parent 3977d76 commit f9a85ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hcloud/client_handler_retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func retryPolicy(resp *Response, err error) bool {
switch {
case errors.As(err, &apiErr):
switch apiErr.Code { //nolint:exhaustive
case ErrorCodeConflict, ErrorCodeLocked:
case ErrorCodeConflict:
return true
case ErrorCodeRateLimitExceeded:
return true
Expand Down

0 comments on commit f9a85ec

Please sign in to comment.