diff options
| author | tv <tv@krebsco.de> | 2026-11-05 03:40:09 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-05 03:40:09 +0100 |
| commit | 11d098477cfc76da0bc4385635e4c4b7124a9259 (patch) | |
| tree | 941640ead4d8e80b291780f708a56f8be53a0fe1 /src/swarm/sync.rs | |
| parent | 9f9015a35b591043ebaf6e306f967ffc62cd07f5 (diff) | |
announce only to those behind
Diffstat (limited to 'src/swarm/sync.rs')
| -rw-r--r-- | src/swarm/sync.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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; |
