Skip to content

Commit

Permalink
core: Fix exponential backoff initial delay
Browse files Browse the repository at this point in the history
Turns out we need to reset the backoff after modifying props
  • Loading branch information
victorges committed Jun 21, 2024
1 parent 34902f5 commit b8a95ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func newExponentialBackOffExecutor() *backoff.ExponentialBackOff {
backOff.InitialInterval = 30 * time.Second
backOff.MaxInterval = 2 * time.Minute
backOff.MaxElapsedTime = 0 // don't impose a timeout as part of the retries

backOff.Reset()
return backOff
}

Expand Down

0 comments on commit b8a95ef

Please sign in to comment.