From 2a785c0bd9ce965b43834664bd177ebf51082119 Mon Sep 17 00:00:00 2001 From: shirady <57721533+shirady@users.noreply.github.com> Date: Wed, 27 Nov 2024 15:09:47 +0200 Subject: [PATCH] CR changes Signed-off-by: shirady <57721533+shirady@users.noreply.github.com> --- src/endpoint/endpoint.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/endpoint/endpoint.js b/src/endpoint/endpoint.js index 6427a662a1..5824a3c26a 100755 --- a/src/endpoint/endpoint.js +++ b/src/endpoint/endpoint.js @@ -112,8 +112,8 @@ async function main(options = {}) { // the primary just forks and returns, workers will continue to serve fork_count = options.forks ?? config.ENDPOINT_FORKS; const metrics_port = options.metrics_port || config.EP_METRICS_SERVER_PORT; - const workers_were_started_from_primary = await fork_utils.start_workers(metrics_port, fork_count); - if (workers_were_started_from_primary) return; + const is_workers_started_from_primary = await fork_utils.start_workers(metrics_port, fork_count); + if (is_workers_started_from_primary) return; const http_port = options.http_port || config.ENDPOINT_PORT; const https_port = options.https_port || config.ENDPOINT_SSL_PORT;