Merge commit '680b86b17c63b67f768bc5da5f34e5ccf056a0ce' into main

This commit is contained in:
Max Brunsfeld
2021-09-10 15:22:59 -07:00
14 changed files with 1045 additions and 439 deletions
+1 -8
View File
@@ -2695,14 +2695,7 @@ impl<'a> Into<proto::operation::Edit> for &'a EditOperation {
impl<'a> Into<proto::Anchor> for &'a Anchor {
fn into(self) -> proto::Anchor {
proto::Anchor {
version: self
.version
.iter()
.map(|entry| proto::VectorClockEntry {
replica_id: entry.replica_id as u32,
timestamp: entry.value,
})
.collect(),
version: (&self.version).into(),
offset: self.offset as u64,
bias: match self.bias {
Bias::Left => proto::anchor::Bias::Left as i32,