diff --git a/updater/src/index.js b/updater/src/index.js index bbb4301..035ad26 100644 --- a/updater/src/index.js +++ b/updater/src/index.js @@ -111,10 +111,10 @@ app.get('/health-status', async () => { Object.entries(healthMap).map(async ([name, { host, port }]) => { const t0 = Date.now() try { - const res = await fetch(`http://${host}:${port}/health`, { + await fetch(`http://${host}:${port}/health`, { signal: AbortSignal.timeout(3000), }) - return { name, up: res.ok, ms: Date.now() - t0 } + return { name, up: true, ms: Date.now() - t0 } } catch { return { name, up: false, ms: null } }