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

Function resolveClientSweepMs

src/mcp/daemon.ts:745–751  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

743}
744
745function resolveClientSweepMs(): number {
746 const raw = process.env.CODEGRAPH_DAEMON_CLIENT_SWEEP_MS;
747 if (raw === undefined || raw === '') return DEFAULT_CLIENT_SWEEP_MS;
748 const parsed = Number(raw);
749 if (!Number.isFinite(parsed) || parsed < 0) return DEFAULT_CLIENT_SWEEP_MS;
750 return Math.floor(parsed); // 0 disables the sweep
751}
752
753/**
754 * Parse one client-hello line. Returns the peer pids if `line` is a well-formed

Callers 1

startLivenessTimersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected