Skip to content

Commit 81100e5

Browse files
committed
remove Retry-After max check
Signed-off-by: Eric Pickard <piceri@github.com>
1 parent 1605e53 commit 81100e5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pkg/deploymentrecord/client.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,6 @@ func parseRateLimitDelay(resp *http.Response) time.Duration {
367367
var retryAfterDelay *time.Duration
368368
if ra := resp.Header.Get("Retry-After"); ra != "" {
369369
if seconds, err := strconv.Atoi(ra); err == nil {
370-
// Max Retry-After of 60 seconds
371-
seconds = min(seconds, 60)
372370
rad := time.Duration(seconds) * time.Second
373371
retryAfterDelay = &rad
374372
}

0 commit comments

Comments
 (0)