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

Function resolveCatchUpGateTimeoutMs

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

Source from the content-addressed store, hash-verified

937 */
938const DEFAULT_CATCHUP_GATE_TIMEOUT_MS = 3000;
939function resolveCatchUpGateTimeoutMs(): number {
940 const raw = process.env.CODEGRAPH_CATCHUP_GATE_TIMEOUT_MS;
941 if (raw === undefined || raw === '') return DEFAULT_CATCHUP_GATE_TIMEOUT_MS;
942 const n = Number(raw);
943 if (!Number.isFinite(n) || n < 0) return DEFAULT_CATCHUP_GATE_TIMEOUT_MS;
944 return Math.floor(n);
945}
946
947/**
948 * Prefix each line of a source slice with its 1-based line number, matching

Callers 1

awaitCatchUpGateMethod · 0.85

Calls 1

NumberInterface · 0.85

Tested by

no test coverage detected