Skip to content

Commit

Permalink
Wait forever for fatal errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rokatyy committed Jan 13, 2025
1 parent 952e8ec commit 40bbc0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/common/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ func RetryFunc(ctx context.Context,
var attempt = 0
for attempt <= attempts {

attempt += 1
attempt++
// some errors might require more attempts than expected, so allow incrementing attempts from outside
retry, err, addAttempts = fn(attempt)
attempt += addAttempts
attempts += addAttempts

// if there's no need to retry - we're done
if !retry {
Expand Down

0 comments on commit 40bbc0e

Please sign in to comment.