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

Function buildHandle

packages/server/src/process-lock.ts:166–177  ·  view source on GitHub ↗
(args: {
  lockName: LockName;
  lockDir: string;
  lockPath: string;
})

Source from the content-addressed store, hash-verified

164}
165
166function buildHandle(args: {
167 lockName: LockName;
168 lockDir: string;
169 lockPath: string;
170}): ProcessLockHandle {
171 const { lockName, lockDir, lockPath } = args;
172 return {
173 lockPath,
174 release: () => releaseProcessLock({ lockName, lockDir }),
175 updatePort: (port) => updateProcessLockPort({ lockName, lockDir, port }),
176 };
177}
178
179export function updateProcessLockPort(opts: {
180 lockName: LockName;

Callers 1

acquireProcessLockFunction · 0.85

Calls 2

releaseProcessLockFunction · 0.85
updateProcessLockPortFunction · 0.85

Tested by

no test coverage detected