mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-29 14:30:31 +08:00
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:
@@ -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<_>>())
|
||||
}
|
||||
|
||||
|
||||
@@ -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<_>>())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user