From 19461552f88e8b82a24c63c00a6591996ae8f45d Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 6 Nov 2026 06:58:48 +0100 Subject: trees at runtime --- src/swarm/sync.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/swarm/sync.rs') diff --git a/src/swarm/sync.rs b/src/swarm/sync.rs index a4ad30c..66fa4a5 100644 --- a/src/swarm/sync.rs +++ b/src/swarm/sync.rs @@ -686,6 +686,9 @@ pub(crate) async fn handle_sync( state.notify_store_changed(); crate::swarm::relay::pulled(state, peer); + if state.initial_sync_done.load(Ordering::Acquire) && !just_caught_up { + crate::swarm::tree::note_arrival(state, peer, writer, carried, &authors).await; + } // Caught up: our other neighbours may lack what the source had. if changed || just_caught_up { let writers: Vec<(u64, Vec)> = authors -- cgit v1.3.1