diff options
| author | tv <tv@krebsco.de> | 2026-11-03 04:44:49 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-03 04:44:49 +0100 |
| commit | 5581992d5603322d7f02bd76625334be3f8a2b18 (patch) | |
| tree | 3c904680730e7fa6071b2712746092c67d91e644 /src/swarm/relay.rs | |
| parent | 05dc2d0373cc8d7b0dc4da63a03a7850e4fefdc8 (diff) | |
measure 2-hop neighbourhood
Diffstat (limited to 'src/swarm/relay.rs')
| -rw-r--r-- | src/swarm/relay.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/swarm/relay.rs b/src/swarm/relay.rs index e11bd69..69d73d3 100644 --- a/src/swarm/relay.rs +++ b/src/swarm/relay.rs @@ -122,7 +122,7 @@ async fn announce_now(state: &AppState, senders: &HashSet<String>) { } state.stats.announce_round(); for peer in neighbours { - if let Err(error) = announce_heads(state, &peer).await { + if let Err(error) = announce_heads(state, &peer, false).await { debug!(peer = %peer, error = %format!("{error:#}"), "Announcing our heads failed"); } } @@ -268,7 +268,7 @@ async fn graft(state: &AppState, peer: &str) { } state.stats.link_grafted(); debug!(peer = %peer, "Link eager: we want its changes as it applies them"); - if let Err(error) = announce_heads(state, peer).await { + if let Err(error) = announce_heads(state, peer, false).await { debug!(peer = %peer, error = %format!("{error:#}"), "Telling a neighbour the link is eager failed"); } } @@ -281,7 +281,7 @@ pub(crate) async fn prune(state: &AppState, peer: &str) { } state.stats.link_pruned(); debug!(peer = %peer, "Link lazy: its changes reach us first another way"); - if let Err(error) = announce_heads(state, peer).await { + if let Err(error) = announce_heads(state, peer, false).await { debug!(peer = %peer, error = %format!("{error:#}"), "Telling a neighbour the link is lazy failed"); } } |
