Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Commit cd5f603

Browse files
committed
Update the comment
1 parent 65c324f commit cd5f603

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gitlab.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,9 @@ func rateLimitBackoff(min, max time.Duration, attemptNum int, resp *http.Respons
526526
}
527527
}
528528
} else {
529-
// For each attempt without the header, back off an additiona 100% exponentially. With the default milliseconds
530-
// being set to 100 for `min`, this makes the 5th retry wait 3.2 seconds (3,200 ms) by default
529+
// In case the RateLimit-Reset header is not set, back off an additional
530+
// 100% exponentially. With the default milliseconds being set to 100 for
531+
// `min`, this makes the 5th retry wait 3.2 seconds (3,200 ms) by default.
531532
min = time.Duration(float64(min) * math.Pow(2, float64(attemptNum)))
532533
}
533534
}

0 commit comments

Comments
 (0)