diff --git a/internal/backoff/backoff.go b/internal/backoff/backoff.go index b1407c30d2..a9b878db01 100644 --- a/internal/backoff/backoff.go +++ b/internal/backoff/backoff.go @@ -121,7 +121,7 @@ func (b *backoff) Do( dctx, cancel := context.WithDeadline(sctx, time.Now().Add(b.backoffTimeLimit)) defer cancel() - for cnt := 0; cnt < b.maxRetryCount; cnt++ { + for cnt := 1; cnt <= b.maxRetryCount; cnt++ { select { case <-dctx.Done(): switch dctx.Err() {