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

Function minRefsForPool

src/resolution/resolver-pool.ts:52–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 * CODEGRAPH_PARALLEL_RESOLVE_MIN=<refs> (0 forces the pool on).
51 */
52export function minRefsForPool(): number {
53 const raw = process.env.CODEGRAPH_PARALLEL_RESOLVE_MIN;
54 if (raw !== undefined) {
55 const parsed = Number.parseInt(raw, 10);
56 if (Number.isFinite(parsed) && parsed >= 0) return parsed;
57 }
58 return 150_000;
59}
60
61export class ResolverPool {
62 private workers: PoolWorker[] = [];

Callers 2

indexAllMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected