From 40f9b0f86c20fe5f422fe3cea2cfff5d6fe9908a Mon Sep 17 00:00:00 2001 From: Deddy Dayag Date: Thu, 5 Jan 2023 18:49:11 +0200 Subject: [PATCH] small fix - removed Canary node poll from status --- src/api/render-status.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/api/render-status.ts b/src/api/render-status.ts index 75a6fdb..dd43770 100644 --- a/src/api/render-status.ts +++ b/src/api/render-status.ts @@ -125,7 +125,6 @@ function getStatusText(snapshot: StateSnapshot) { res.push(`RefBlock = ${snapshot.CurrentRefBlock}`); res.push(`TotalEventsProcessed = ${snapshot.EventsStats.TotalEventsProcessed}`); res.push(`committee size = ${snapshot.CurrentCommittee.length}`); - res.push(`stable node = ${snapshot.CurrentImageVersions['main']['node']}\n`); return res.join(', '); } @@ -145,12 +144,7 @@ function getErrorText(snapshot: StateSnapshot) { } } } - // only go over images that we really care if the canary version is found or not - for (const imageName of ['node']) { - const polledAgo = now - (snapshot.CurrentImageVersionsUpdater['canary'][imageName]?.LastPollTime ?? 0); - if (polledAgo > DOCKER_HUB_POLL_ALLOWED_DELAY) { - res.push(`Canary version poll for ${imageName} is too old (${polledAgo} sec ago).`); - } - } + return res.join(' '); + }