From 1c4c52e088bc8f01eb98bb0fd066cbe1e8c5643f Mon Sep 17 00:00:00 2001 From: Minttu Hurme Date: Fri, 17 Jan 2025 15:02:43 +0200 Subject: [PATCH] HealthCheck delay to integer --- src/amqp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amqp.js b/src/amqp.js index 5b84137..1bfb17f 100644 --- a/src/amqp.js +++ b/src/amqp.js @@ -49,7 +49,7 @@ export default async function (AMQP_URL, runHealthCheck = false) { debugHC(`Health checking amqp by asserting a queue`); await channel.assertQueue('HEALTHCHECK', {durable: false}); debugHC(`Waiting 200ms before running healthCheck next`); - return healthCheck('200'); + return healthCheck(200); } catch (error) { debugHC(`HealthCheck error ${JSON.stringify(error)}`); handleAmqpErrors(error);