From ef9da1740a6caec1bb0009188082e6fd4cd2fc7f Mon Sep 17 00:00:00 2001 From: cschen Date: Wed, 14 Aug 2024 13:34:01 +0200 Subject: [PATCH] chore: explaining an extra thing --- src/buffer/worker.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/buffer/worker.rs b/src/buffer/worker.rs index 8f18190..99776b8 100644 --- a/src/buffer/worker.rs +++ b/src/buffer/worker.rs @@ -142,9 +142,8 @@ impl ControllerWorker for BufferWorker { // we give it to the controller so that he knows where it's at. let step_ver = oplog.version_union(&[lv.start], &last_ver); - // if you merge up until the oplog.local_version_ref() - // it's as if you are merging the whole iterator. - // Not just this change... + // moved the merging inside as we only need + // an up to date content when we hash the content. let hash = if timer.step() { branch.merge(&oplog, &step_ver); let hash = xxhash_rust::xxh3::xxh3_64(branch.content().to_string().as_bytes());