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

Function ensureRemote

packages/effect/src/unstable/eventlog/EventJournal.ts:378–385  ·  view source on GitHub ↗
(remoteId: RemoteId)

Source from the content-addressed store, hash-verified

376 }
377
378 const ensureRemote = (remoteId: RemoteId) => {
379 const remoteIdString = Uuid.stringify(remoteId)
380 const remote = remotes.get(remoteIdString)
381 if (remote) return remote
382 const created = { sequence: 0, missing: journal.slice() }
383 remotes.set(remoteIdString, created)
384 return created
385 }
386
387 return EventJournal.of({
388 entries: Effect.sync(() => journal.slice()),

Callers 1

EventJournal.tsFile · 0.85

Calls 2

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected