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
This commit is contained in:
Alexis Sellier
2023-07-25 15:29:27 +02:00
parent 61f6bcd006
commit a102102d3e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ pub fn all(repository: &Repository) -> Result<Vec<(IssueId, Issue)>> {
Ok(patches
.into_iter()
.map(|(id, issue, _)| (id, issue))
.map(|(id, issue)| (id, issue))
.collect::<Vec<_>>())
}
+1 -1
View File
@@ -10,7 +10,7 @@ pub fn all(repository: &Repository) -> Result<Vec<(PatchId, Patch)>> {
Ok(patches
.into_iter()
.map(|(id, patch, _)| (id, patch))
.map(|(id, patch)| (id, patch))
.collect::<Vec<_>>())
}