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

Function resolveWalHealBytes

src/db/index.ts:61–67  ·  view source on GitHub ↗
(envVal: string | undefined)

Source from the content-addressed store, hash-verified

59
60/** Resolve the heal threshold from the env override (MB); invalid ⇒ 64 MB. */
61export function resolveWalHealBytes(envVal: string | undefined): number {
62 if (envVal !== undefined && envVal !== '') {
63 const n = Number(envVal);
64 if (Number.isFinite(n) && n > 0) return Math.floor(n * 1024 * 1024);
65 }
66 return 64 * 1024 * 1024;
67}
68
69/**
70 * Database connection wrapper with lifecycle management

Callers 2

wal-heal.test.tsFile · 0.90
index.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected