MCPcopy
hub / github.com/inkeep/open-knowledge / readLock

Function readLock

packages/cli/src/commands/ui.test.ts:1080–1083  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1078
1079 let calls = 0;
1080 const readLock = () => {
1081 calls++;
1082 return calls < 3 ? fakeLock(0) : fakeLock(upstreamPort);
1083 };
1084
1085 const result = await resolveUiLockCollision({
1086 requestedPort: 0,

Callers 3

resolveUiLockCollisionFunction · 0.70
resolveMcpHttpUrlFunction · 0.50
resolveMcpKeepaliveWsUrlFunction · 0.50

Calls 1

fakeLockFunction · 0.85

Tested by

no test coverage detected