Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Kosuke Morimoto <[email protected]>
  • Loading branch information
kmrmt committed Sep 6, 2024
1 parent 48e0452 commit bb06ded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/backoff/backoff.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit bb06ded

Please sign in to comment.