fix(workspace-sync): add void to floating promises in setTimeout
This commit is contained in:
parent
a3eaec5f41
commit
164f473d29
@ -57,7 +57,7 @@ function scheduleNextSync(): void {
|
|||||||
if (!state.running || state.intervalMs <= 0) return;
|
if (!state.running || state.intervalMs <= 0) return;
|
||||||
|
|
||||||
state.timeoutId = setTimeout(() => {
|
state.timeoutId = setTimeout(() => {
|
||||||
runSyncLoop();
|
void runSyncLoop();
|
||||||
}, state.intervalMs);
|
}, state.intervalMs);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -233,7 +233,7 @@ export function startWorkspaceSyncManager(cfg: MoltbotConfig, logger: SyncManage
|
|||||||
// Run initial sync after a short delay (let gateway fully start)
|
// Run initial sync after a short delay (let gateway fully start)
|
||||||
// Then schedule subsequent syncs via setTimeout chain
|
// Then schedule subsequent syncs via setTimeout chain
|
||||||
state.timeoutId = setTimeout(() => {
|
state.timeoutId = setTimeout(() => {
|
||||||
runSyncLoop();
|
void runSyncLoop();
|
||||||
}, 5000);
|
}, 5000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user