Skip to content

Commit

Permalink
feat: circuit broken errors no longer retried
Browse files Browse the repository at this point in the history
  • Loading branch information
chr15stevens committed Nov 15, 2024
1 parent 34baa2a commit 2d91c23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ class HttpTransportClient {
}

function isCriticalError(err) {
if (err && err.statusCode < 500) {
if (err && (err.statusCode < 500 || err.isBrokenCircuitError)) {
return false;
}
return true;
Expand Down

0 comments on commit 2d91c23

Please sign in to comment.