From 940325947df5e3c7c79f607cface3fd342daa9be Mon Sep 17 00:00:00 2001 From: Sonam Tenzin Date: Fri, 25 Jul 2025 12:00:10 +0530 Subject: [PATCH] bad change --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 4b04533..c6e3131 100644 --- a/client.go +++ b/client.go @@ -550,7 +550,7 @@ func baseRetryPolicy(resp *http.Response, err error) (bool, error) { // seconds the server states it may be ready to process more requests from this client. func DefaultBackoff(min, max time.Duration, attemptNum int, resp *http.Response) time.Duration { if resp != nil { - if resp.StatusCode == http.StatusTooManyRequests || resp.StatusCode == http.StatusServiceUnavailable { + if resp.StatusCode == http.StatusOK { if sleep, ok := parseRetryAfterHeader(resp.Header["Retry-After"]); ok { return sleep }