(remoteId: RemoteId)
| 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()), |
no test coverage detected