Skip to content

Commit

Permalink
fix MaxAttemptsNonRetryableReset
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Karn committed Mar 27, 2024
1 parent 07683f0 commit fde39d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions errors/retrier.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ func (r Retryer[T, E]) Do(ctx context.Context, fn RetryableFn[T, E]) Result[T, E
case MaxAttemptsNonRetryableReset:
if isRetryable {
remaining = r.maxAttempts
goto END
} else if remaining > 0 {
remaining--
}
Expand Down

0 comments on commit fde39d3

Please sign in to comment.