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

Function maxDirWatches

src/sync/watcher.ts:154–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152const DEFAULT_MAX_DIR_WATCHES = 50_000;
153
154function maxDirWatches(): number {
155 const raw = process.env.CODEGRAPH_MAX_DIR_WATCHES;
156 if (raw && /^\d+$/.test(raw)) {
157 const n = Number(raw);
158 if (n > 0) return n;
159 }
160 return DEFAULT_MAX_DIR_WATCHES;
161}
162
163/**
164 * Test seam (see {@link __emitWatchEventForTests}). Maps a watcher's project

Callers 1

watchTreeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected