Skip to content

Commit

Permalink
Merge pull request #1226 from tomguluson92/patch-2
Browse files Browse the repository at this point in the history
fix: CircuitBreaker.ts
  • Loading branch information
shakkernerd authored Dec 19, 2024
2 parents 21c63c4 + bb5caa5 commit 50ef711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/database/CircuitBreaker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class CircuitBreaker {
this.failureCount++;
this.lastFailureTime = Date.now();

if (this.failureCount >= this.failureThreshold) {
if (this.state !== "OPEN" && this.failureCount >= this.failureThreshold) {
this.state = "OPEN";
}
}
Expand Down

0 comments on commit 50ef711

Please sign in to comment.