Skip to content

Commit

Permalink
HealthCheck delay to integer
Browse files Browse the repository at this point in the history
  • Loading branch information
ammsalme committed Jan 17, 2025
1 parent b1a07ec commit 1c4c52e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/amqp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1c4c52e

Please sign in to comment.