mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-26 08:54:49 +01:00
chore: explaining an extra thing
This commit is contained in:
parent
4d65b2db7d
commit
ef9da1740a
1 changed files with 2 additions and 3 deletions
|
@ -142,9 +142,8 @@ impl ControllerWorker<TextChange> 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());
|
||||
|
|
Loading…
Reference in a new issue