diff options
Diffstat (limited to 'src/swarm/sync.rs')
| -rw-r--r-- | src/swarm/sync.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/swarm/sync.rs b/src/swarm/sync.rs index c953752..5e736a1 100644 --- a/src/swarm/sync.rs +++ b/src/swarm/sync.rs @@ -63,6 +63,13 @@ async fn deliver_sync_to_peer(state: &AppState, peer: &str) -> Result<()> { } } + // A set of events is passed on otherwise (`swarm::set`): of the Automerge document + // a node holds beside one, nothing. + #[cfg(feature = "federation")] + if state.of_a_set() { + return Ok(()); + } + let we_ready = state.is_ready().await; let validated_swarm = { |
