From 20a775305d34560248872f74aa4962631fc5f3d0 Mon Sep 17 00:00:00 2001 From: Chris Anderson Date: Tue, 4 Jun 2024 10:24:15 -0700 Subject: [PATCH] mute removals --- packages/fireproof/src/crdt-clock.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/fireproof/src/crdt-clock.ts b/packages/fireproof/src/crdt-clock.ts index a23d2bad..a0e1f0a0 100644 --- a/packages/fireproof/src/crdt-clock.ts +++ b/packages/fireproof/src/crdt-clock.ts @@ -88,7 +88,10 @@ export class CRDTClock { async (tblocks: CarTransaction) => { head = await advanceBlocks(newHead, tblocks, head) const result = await root(tblocks, head) - for (const { cid, bytes } of [...result.additions, ...result.removals]) { + for (const { cid, bytes } of [ + ...result.additions + // ...result.removals + ]) { tblocks.putSync(cid, bytes) } return { head }