Skip to content

Commit

Permalink
uploader: backoff lib is confusing
Browse files Browse the repository at this point in the history
  • Loading branch information
victorges committed Jul 18, 2024
1 parent 2041441 commit 845e229
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 @@ -39,7 +39,7 @@ func newExponentialBackOffExecutor() *backoff.ExponentialBackOff {
}

func UploadRetryBackoff() backoff.BackOff {
return backoff.WithMaxRetries(newExponentialBackOffExecutor(), 1)
return backoff.WithMaxRetries(newExponentialBackOffExecutor(), 2)
}

const segmentWriteTimeout = 5 * time.Minute
Expand Down

0 comments on commit 845e229

Please sign in to comment.