From b27deddf99361293384c0f8daabd23b2e252b78a Mon Sep 17 00:00:00 2001 From: "Ben Scholzen (DASPRiD)" Date: Mon, 4 Nov 2024 14:39:53 +0100 Subject: [PATCH] fix: back off when response health response is not ok --- src/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 58c397d..b15ec78 100644 --- a/src/index.ts +++ b/src/index.ts @@ -277,9 +277,11 @@ export class SyncManager { return; } } catch { - this.config.logger.info("Unable to verify health, backing off"); - await new Promise((resolve) => setTimeout(resolve, 5000)); + // Noop } + + this.config.logger.info("Unable to verify health, backing off"); + await new Promise((resolve) => setTimeout(resolve, 5000)); } throw new Error(`Service "${serviceName}" didn't turn ready within 60 seconds`);