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

Function resolveCatchUpGateTimeoutMs

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

Source from the content-addressed store, hash-verified

345 */
346const DEFAULT_CATCHUP_GATE_TIMEOUT_MS = 3000;
347function resolveCatchUpGateTimeoutMs(): number {
348 const raw = process.env.CODEGRAPH_CATCHUP_GATE_TIMEOUT_MS;
349 if (raw === undefined || raw === '') return DEFAULT_CATCHUP_GATE_TIMEOUT_MS;
350 const n = Number(raw);
351 if (!Number.isFinite(n) || n < 0) return DEFAULT_CATCHUP_GATE_TIMEOUT_MS;
352 return Math.floor(n);
353}
354
355/**
356 * 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