Handle status fanout rejections (Refs #66)

This commit is contained in:
2026-10-09 12:33:15 -04:00
parent ff589afe5e
commit 96d21d0514
4 changed files with 90 additions and 2 deletions
+4 -2
View File
@@ -276,9 +276,11 @@ export function startWorker(): void {
void tick();
reconcileRequesters();
void fanoutStatus();
void fanoutStatus().catch(err => { console.error('[worker] status fanout error:', err); });
tickTimer = setInterval(() => { void tick(); reconcileRequesters(); }, TICK_MS);
statusTimer = setInterval(fanoutStatus, STATUS_REFRESH_MS);
statusTimer = setInterval(() => {
void fanoutStatus().catch(err => { console.error('[worker] status fanout error:', err); });
}, STATUS_REFRESH_MS);
console.log('[worker] started — sweep every', TICK_MS, 'ms, status every', STATUS_REFRESH_MS, 'ms');
}