mirror of
https://github.com/loro-dev/loro.git
synced 2025-02-05 20:17:13 +00:00
fix: rename vv diff
This commit is contained in:
parent
5db052d16a
commit
2df24725df
1 changed files with 4 additions and 4 deletions
|
@ -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<PeerID, CounterSpan>,
|
||||
pub retreat: HashMap<PeerID, CounterSpan>,
|
||||
/// need to add these spans to move from left to right
|
||||
pub right: HashMap<PeerID, CounterSpan>,
|
||||
pub forward: HashMap<PeerID, CounterSpan>,
|
||||
}
|
||||
|
||||
impl From<loro::VersionVectorDiff> 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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue