aboutsummaryrefslogtreecommitdiffstats
path: root/src/swarm/sync.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/swarm/sync.rs')
-rw-r--r--src/swarm/sync.rs3
1 files changed, 3 insertions, 0 deletions
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<crate::document::ChangeHash>)> = authors