This commit is contained in:
2026-01-02 18:20:15 +00:00
parent 0f7c29c3ef
commit ce5a8fbffd
37 changed files with 323 additions and 178 deletions
+1 -1
View File
@@ -235,7 +235,7 @@ func (c *Client) do(ctx context.Context, req *http.Request) (*http.Response, err
// Check if response is retryable
if c.isRetryable(resp.StatusCode) {
resp.Body.Close()
resp.Body.Close() // #nosec G104 -- Cleanup, error not critical
lastErr = fmt.Errorf("received retryable status code: %d", resp.StatusCode)
if c.circuitBreaker != nil {
c.circuitBreaker.RecordFailure()