diff options
| author | tv <tv@krebsco.de> | 2026-10-28 03:44:02 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-28 03:44:02 +0100 |
| commit | 2f241feb637bf71fe5077ba183ffabe03c8212f3 (patch) | |
| tree | 8e924df3ab00fbf93fe3f2103493b123d05398b8 /src/api/peers.rs | |
| parent | ff6d98bdd5f921942eb2b37d313d3b9d18acee40 (diff) | |
drop peer.rttMs from /peers API
Diffstat (limited to 'src/api/peers.rs')
| -rw-r--r-- | src/api/peers.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/api/peers.rs b/src/api/peers.rs index a653f7d..cea3644 100644 --- a/src/api/peers.rs +++ b/src/api/peers.rs @@ -69,9 +69,6 @@ pub(crate) struct PeerStatus { heads: Option<usize>, /// We keep it alive and sync with it on our own; other peers we only answer. neighbour: bool, - /// Round-trip time in milliseconds of the path messages to it go over (`swarm::rtt`); - /// absent without a recent value. - rtt_ms: Option<f64>, /// Messages and payload bytes exchanged with it, by kind, since we started (or /// since it was last listed). traffic: PeerTraffic, @@ -124,10 +121,6 @@ pub(crate) async fn list_peers( for (peer, peer_state_mutex) in snapshot { let neighbour = crate::swarm::topology::is_neighbour(&state, &peer); - let rtt_ms = state - .lock_rtt() - .effective(&peer, now, state.timing.rtt_fresh_for()) - .map(|rtt| rtt.as_secs_f64() * 1000.0); let traffic = state.traffic.peer(&peer).unwrap_or_default(); let sync_throughput = state .throughput @@ -169,7 +162,6 @@ pub(crate) async fn list_peers( same_epoch: ps.epoch.map(|epoch| epoch == local_epoch), heads: ps.reported_heads, neighbour, - rtt_ms, traffic, incidents: ps.incidents, sync_throughput, |
