We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 21c63c4 + bb5caa5 commit 50ef711Copy full SHA for 50ef711
packages/core/src/database/CircuitBreaker.ts
@@ -53,7 +53,7 @@ export class CircuitBreaker {
53
this.failureCount++;
54
this.lastFailureTime = Date.now();
55
56
- if (this.failureCount >= this.failureThreshold) {
+ if (this.state !== "OPEN" && this.failureCount >= this.failureThreshold) {
57
this.state = "OPEN";
58
}
59
0 commit comments