summaryrefslogtreecommitdiffstats
path: root/src/api/peers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/peers.rs')
-rw-r--r--src/api/peers.rs8
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,