Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Jun 19, 2024
1 parent 14a5734 commit 06ac646
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CircuitBreaker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export class CircuitBreaker extends EventEmitter {
}

async _evaluate() {
this._promError = false;
this._evaluatingPromiseHook = Promise.allSettled(this._probes.map(p => p.check().catch(error => {
if (error instanceof Error && error.message === 'Failed to query Prometheus') {
this._promError = true;
Expand Down

0 comments on commit 06ac646

Please sign in to comment.