From 6b42a751406bf7e1c32e2bf9efa6bf849c17b5ce Mon Sep 17 00:00:00 2001 From: syoul Date: Wed, 22 Apr 2026 00:02:56 +0200 Subject: [PATCH] =?UTF-8?q?perf:=20r=C3=A9duire=20la=20fr=C3=A9quence=20de?= =?UTF-8?q?=20polling=20=E2=80=94=20data=202=20min,=20statut=2060s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- src/App.tsx | 2 +- src/hooks/useServiceStatus.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index efa340f..8fff58c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -117,7 +117,7 @@ export default function App() { }; load(true); - const interval = setInterval(() => load(false), 30_000); + const interval = setInterval(() => load(false), 120_000); return () => { cancelled = true; clearInterval(interval); }; }, [periodDays, endpointVersion]); diff --git a/src/hooks/useServiceStatus.ts b/src/hooks/useServiceStatus.ts index 49b614c..8bc6fdb 100644 --- a/src/hooks/useServiceStatus.ts +++ b/src/hooks/useServiceStatus.ts @@ -17,7 +17,7 @@ export interface ServicesStatus { const TIMEOUT_MS = 8_000; const SLOW_THRESHOLD_MS = 2_000; -const POLL_INTERVAL_MS = 30_000; +const POLL_INTERVAL_MS = 60_000; async function pingSubsquid(url: string): Promise { const controller = new AbortController();