mirror of
https://github.com/apricote/hcloud-upload-image.git
synced 2026-01-13 13:21:01 +00:00
fix: increase retry interval
This commit is contained in:
parent
ba421d7dd8
commit
569463484f
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ func Retry(ctx context.Context, maxTries int, f func() error) error {
|
|||
|
||||
var err error
|
||||
|
||||
backoffFunc := backoff.ExponentialBackoffWithLimit(2, 200*time.Millisecond, 2*time.Second)
|
||||
backoffFunc := backoff.ExponentialBackoffWithLimit(2, 200*time.Millisecond, 30*time.Second)
|
||||
|
||||
for try := 0; try < maxTries; try++ {
|
||||
if ctx.Err() != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue