Skip to content

Commit 9403259

Browse files
committed
bad change
1 parent eeac125 commit 9403259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ func baseRetryPolicy(resp *http.Response, err error) (bool, error) {
550550
// seconds the server states it may be ready to process more requests from this client.
551551
func DefaultBackoff(min, max time.Duration, attemptNum int, resp *http.Response) time.Duration {
552552
if resp != nil {
553-
if resp.StatusCode == http.StatusTooManyRequests || resp.StatusCode == http.StatusServiceUnavailable {
553+
if resp.StatusCode == http.StatusOK {
554554
if sleep, ok := parseRetryAfterHeader(resp.Header["Retry-After"]); ok {
555555
return sleep
556556
}

0 commit comments

Comments
 (0)