MCPcopy Create free account
hub / github.com/Effect-TS/effect / recheckPin

Function recheckPin

packages/effect/src/eventlog/SqlEventLogServerEncrypted.ts:667–672  ·  view source on GitHub ↗
(stageId: string, pinned: string)

Source from the content-addressed store, hash-verified

665 })
666 // Fails a read that may have been truncated by a prune of its pin.
667 const recheckPin = (stageId: string, pinned: string) =>
668 Effect.flatMap(
669 selectActivation(pinned),
670 (activation) =>
671 activation === undefined || activation.pruneStartedAt !== undefined ? notFound(stageId) : Effect.void
672 )
673
674 const status = Effect.fnUntraced(function*({ scope, tableSql }: StoreResources, now: number) {
675 const store = (yield* selectStore(scope))!

Callers 1

makeStorageFunction · 0.85

Calls 2

selectActivationFunction · 0.85
notFoundFunction · 0.70

Tested by

no test coverage detected