fix(workspace-sync): add void to floating promises in setTimeout

This commit is contained in:
Ash Brener 2026-01-28 20:01:25 +02:00
parent a3eaec5f41
commit 164f473d29

View File

@ -57,7 +57,7 @@ function scheduleNextSync(): void {
if (!state.running || state.intervalMs <= 0) return;
state.timeoutId = setTimeout(() => {
runSyncLoop();
void runSyncLoop();
}, state.intervalMs);
}
@ -233,7 +233,7 @@ export function startWorkspaceSyncManager(cfg: MoltbotConfig, logger: SyncManage
// Run initial sync after a short delay (let gateway fully start)
// Then schedule subsequent syncs via setTimeout chain
state.timeoutId = setTimeout(() => {
runSyncLoop();
void runSyncLoop();
}, 5000);
}