perf: réduire la fréquence de polling — data 2 min, statut 60s
ci/woodpecker/push/woodpecker Pipeline was successful

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
syoul
2026-04-22 00:02:56 +02:00
parent 8e396cd331
commit 6b42a75140
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ export default function App() {
}; };
load(true); load(true);
const interval = setInterval(() => load(false), 30_000); const interval = setInterval(() => load(false), 120_000);
return () => { cancelled = true; clearInterval(interval); }; return () => { cancelled = true; clearInterval(interval); };
}, [periodDays, endpointVersion]); }, [periodDays, endpointVersion]);
+1 -1
View File
@@ -17,7 +17,7 @@ export interface ServicesStatus {
const TIMEOUT_MS = 8_000; const TIMEOUT_MS = 8_000;
const SLOW_THRESHOLD_MS = 2_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<number> { async function pingSubsquid(url: string): Promise<number> {
const controller = new AbortController(); const controller = new AbortController();