mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 23:34: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.
|
// we give it to the controller so that he knows where it's at.
|
||||||
let step_ver = oplog.version_union(&[lv.start], &last_ver);
|
let step_ver = oplog.version_union(&[lv.start], &last_ver);
|
||||||
|
|
||||||
// if you merge up until the oplog.local_version_ref()
|
// moved the merging inside as we only need
|
||||||
// it's as if you are merging the whole iterator.
|
// an up to date content when we hash the content.
|
||||||
// Not just this change...
|
|
||||||
let hash = if timer.step() {
|
let hash = if timer.step() {
|
||||||
branch.merge(&oplog, &step_ver);
|
branch.merge(&oplog, &step_ver);
|
||||||
let hash = xxhash_rust::xxh3::xxh3_64(branch.content().to_string().as_bytes());
|
let hash = xxhash_rust::xxh3::xxh3_64(branch.content().to_string().as_bytes());
|
||||||
|
|
Loading…
Reference in a new issue