From 11d098477cfc76da0bc4385635e4c4b7124a9259 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 5 Nov 2026 03:40:09 +0100 Subject: announce only to those behind --- 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 ed4c4da..8660742 100644 --- a/src/swarm/sync.rs +++ b/src/swarm/sync.rs @@ -484,6 +484,9 @@ pub(crate) async fn handle_sync( let mut peer_state = peer_state_mutex.blocking_lock(); peer_state.reports_ready = Some(from_ready); + // What it says it has (`swarm::relay::unreached`). + peer_state.last_heads = + Some((epoch, transport::HeadsSummary::of(message.heads().to_vec()))); let heads_before = replica.heads().to_vec(); let sync = &mut peer_state.sync; -- cgit v1.3.1