diff --git a/crates/loro-ffi/src/version.rs b/crates/loro-ffi/src/version.rs index 42e9835d..69fb7806 100644 --- a/crates/loro-ffi/src/version.rs +++ b/crates/loro-ffi/src/version.rs @@ -125,16 +125,16 @@ impl Default for Frontiers { pub struct VersionVectorDiff { /// need to add these spans to move from right to left - pub left: HashMap, + pub retreat: HashMap, /// need to add these spans to move from left to right - pub right: HashMap, + pub forward: HashMap, } impl From for VersionVectorDiff { fn from(value: loro::VersionVectorDiff) -> Self { Self { - left: value.retreat.into_iter().collect(), - right: value.forward.into_iter().collect(), + retreat: value.retreat.into_iter().collect(), + forward: value.forward.into_iter().collect(), } } }