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:
Julian Tölle 2025-05-04 00:01:50 +02:00 committed by GitHub
parent b328867f6b
commit 021787a9c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 {