We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81d0273 commit b8f9d81Copy full SHA for b8f9d81
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