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

Function resolveCatchUpGateTimeoutMs

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

Source from the content-addressed store, hash-verified

334 */
335const DEFAULT_CATCHUP_GATE_TIMEOUT_MS = 3000;
336function resolveCatchUpGateTimeoutMs(): number {
337 const raw = process.env.CODEGRAPH_CATCHUP_GATE_TIMEOUT_MS;
338 if (raw === undefined || raw === '') return DEFAULT_CATCHUP_GATE_TIMEOUT_MS;
339 const n = Number(raw);
340 if (!Number.isFinite(n) || n < 0) return DEFAULT_CATCHUP_GATE_TIMEOUT_MS;
341 return Math.floor(n);
342}
343
344/**
345 * 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