mirror of
https://github.com/apricote/hcloud-upload-image.git
synced 2026-01-13 13:21:01 +00:00
chore: lower ssh retry exponential backoff limit (#68)
The process is already slow enough, no need to waste so much time between SSH attempts.
This commit is contained in:
parent
b328867f6b
commit
021787a9c3
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
|
var err error
|
||||||
|
|
||||||
backoffFunc := backoff.ExponentialBackoffWithLimit(2, 1*time.Second, 30*time.Second)
|
backoffFunc := backoff.ExponentialBackoffWithLimit(2, 200*time.Millisecond, 2*time.Second)
|
||||||
|
|
||||||
for try := 0; try < maxTries; try++ {
|
for try := 0; try < maxTries; try++ {
|
||||||
if ctx.Err() != nil {
|
if ctx.Err() != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue