MCPcopy
hub / github.com/colbymchenry/codegraph / resolveCatchUpGateTimeoutMs

Function resolveCatchUpGateTimeoutMs

src/mcp/tools.ts:305–311  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

303 */
304const DEFAULT_CATCHUP_GATE_TIMEOUT_MS = 3000;
305function resolveCatchUpGateTimeoutMs(): number {
306 const raw = process.env.CODEGRAPH_CATCHUP_GATE_TIMEOUT_MS;
307 if (raw === undefined || raw === '') return DEFAULT_CATCHUP_GATE_TIMEOUT_MS;
308 const n = Number(raw);
309 if (!Number.isFinite(n) || n < 0) return DEFAULT_CATCHUP_GATE_TIMEOUT_MS;
310 return Math.floor(n);
311}
312
313/**
314 * Prefix each line of a source slice with its 1-based line number, matching

Callers 1

awaitCatchUpGateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected