From a102102d3edcf0397d6cb9b934078f7575afc0e1 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Thu, 13 Jul 2023 13:21:15 +0200 Subject: [PATCH] cob: Remove CRDTs from COB state It turns out that the CRDT formed by the union of Git DAGs is enough to guarantee everything we need for COBs. This changes the following things: * COB operations no longer need to be commutative * COB histories are traversed in the same deterministic order on all replicas * It's now possible to implement RSMs on top of COBs, eg. scripting * Lamport clocks have been removed * `radicle-crdt` is no longer a dependency of `radicle` * COBs are no longer instances of `Semilattice` * The `Ops` type was removed in favor of having `Op` contain multiple actions --- radicle-tui/src/cob/issue.rs | 2 +- radicle-tui/src/cob/patch.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/radicle-tui/src/cob/issue.rs b/radicle-tui/src/cob/issue.rs index 04234aec..0e0f1e5c 100644 --- a/radicle-tui/src/cob/issue.rs +++ b/radicle-tui/src/cob/issue.rs @@ -9,7 +9,7 @@ pub fn all(repository: &Repository) -> Result> { Ok(patches .into_iter() - .map(|(id, issue, _)| (id, issue)) + .map(|(id, issue)| (id, issue)) .collect::>()) } diff --git a/radicle-tui/src/cob/patch.rs b/radicle-tui/src/cob/patch.rs index 01dce274..dc73955e 100644 --- a/radicle-tui/src/cob/patch.rs +++ b/radicle-tui/src/cob/patch.rs @@ -10,7 +10,7 @@ pub fn all(repository: &Repository) -> Result> { Ok(patches .into_iter() - .map(|(id, patch, _)| (id, patch)) + .map(|(id, patch)| (id, patch)) .collect::>()) }