Skip to content

Commit

Permalink
match v2 client error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jharley committed Aug 1, 2024
1 parent e938f92 commit fbb0f30
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ func (c *Client) retryHTTPCheck(ctx context.Context, resp *http.Response, err er
if ctx.Err() != nil {
return false, ctx.Err()
}
if err != nil {
return true, err
}

if resp != nil {
if resp.StatusCode == http.StatusTooManyRequests ||
Expand Down

0 comments on commit fbb0f30

Please sign in to comment.