Skip to content

Commit

Permalink
fix: prevent concurency issues on retry
Browse files Browse the repository at this point in the history
  • Loading branch information
radulucut committed Mar 13, 2024
1 parent 15405b3 commit bceca0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ func (c *Client) request(
}
return nil
}
// Unauthorized: retry request in case the token expired
if r.StatusCode == 401 {
c.authBearer = ""
return c.request(method, path, body, res)
}
return &ResponseError{
Expand Down

0 comments on commit bceca0c

Please sign in to comment.