diff options
Diffstat (limited to 'src/remake')
| -rw-r--r-- | src/remake/switch.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/remake/switch.rs b/src/remake/switch.rs index ef616dc..3baa164 100644 --- a/src/remake/switch.rs +++ b/src/remake/switch.rs @@ -78,6 +78,12 @@ pub(crate) async fn run_worker<H: Host>(host: H) { } async fn check<H: Host>(host: &H) { + // A set of events has no epochs: the document a node holds beside one stays as + // it is, whatever epoch its peers of both kinds say. + #[cfg(feature = "federation")] + if host.holding().of_a_set() { + return; + } let local = host.current_epoch(); host.remake() .prune_archive(local.generation, host.now_millis()); |
