()
| 937 | */ |
| 938 | const DEFAULT_CATCHUP_GATE_TIMEOUT_MS = 3000; |
| 939 | function 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 |
no test coverage detected