chore: lower ssh retry exponential backoff limit

The process is already slow enough, no need to waste so much time
between SSH attempts.
This commit is contained in:
Julian Tölle 2025-05-03 23:56:40 +02:00
parent b328867f6b
commit 96f21190cf

View file

@ -18,7 +18,7 @@ func Retry(ctx context.Context, maxTries int, f func() error) 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++ {
if ctx.Err() != nil {