MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / scheduleRetrySync

Method scheduleRetrySync

src/sync/watcher.ts:816–824  ·  view source on GitHub ↗

* Schedule a retry after a recoverable sync failure (lock contention). Kept * separate from scheduleSync so prolonged contention backs off * exponentially instead of hammering the lock every debounce cycle.

(delayMs: number)

Source from the content-addressed store, hash-verified

814 * exponentially instead of hammering the lock every debounce cycle.
815 */
816 private scheduleRetrySync(delayMs: number): void {
817 if (this.debounceTimer) {
818 clearTimeout(this.debounceTimer);
819 }
820 this.debounceTimer = setTimeout(() => {
821 this.debounceTimer = null;
822 this.flush();
823 }, delayMs);
824 }
825
826 /**
827 * Flush pending changes by running sync.

Callers 1

flushMethod · 0.95

Calls 1

flushMethod · 0.95

Tested by

no test coverage detected