Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
nicnocquee committed Nov 9, 2023
1 parent 9a50269 commit 79677f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/probe/prober/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export class BaseProber implements Prober {
* @param probeResults The probe results
* @returns void
*/
protected async sendRecoveryNotificationIfNeeded(
protected sendRecoveryNotificationIfNeeded(
incidentRetryAttempt: number,
probeResults: Pick<ProbeResult, 'requestResponse'>[]
) {
Expand All @@ -217,7 +217,7 @@ export class BaseProber implements Prober {
false,
`Probing succeeds but previously incident. Will retry. Attempt (${
incidentRetryAttempt + 1
}) with recover threshold (${this.probeConfig.recoveryThreshold}).`
}) with recovery threshold (${this.probeConfig.recoveryThreshold}).`
)
// throw here so that the retry function in src/components/probe/index.ts can retry again
throw new Error('Probing succeeds but recovery threshold is not met.')
Expand Down

0 comments on commit 79677f2

Please sign in to comment.