diff options
Diffstat (limited to 'src/federation/store/mod.rs')
| -rw-r--r-- | src/federation/store/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/federation/store/mod.rs b/src/federation/store/mod.rs index ec3fb56..4027fb9 100644 --- a/src/federation/store/mod.rs +++ b/src/federation/store/mod.rs @@ -94,6 +94,12 @@ pub(crate) trait Fold { true } + /// What the event writes that other events may write alike, where it writes such: a + /// node refuses whatever writes what an event its operator had it drop writes. + fn writes(_event: &[u8]) -> Option<Id> { + None + } + /// The checkpoint at `heads`, read as `at`: its bytes, and the events it keeps. fn checkpoint(at: &Self::State, heads: &[Id]) -> (Vec<u8>, Vec<Id>); |
