From ff6d98bdd5f921942eb2b37d313d3b9d18acee40 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 28 Oct 2026 03:43:37 +0100 Subject: get swarm RTT from paths --- src/api/peers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/api/peers.rs') diff --git a/src/api/peers.rs b/src/api/peers.rs index f2281c2..a653f7d 100644 --- a/src/api/peers.rs +++ b/src/api/peers.rs @@ -69,8 +69,8 @@ pub(crate) struct PeerStatus { heads: Option, /// We keep it alive and sync with it on our own; other peers we only answer. neighbour: bool, - /// Effective round-trip time in milliseconds (smoothed, raised by a HELLO still - /// unanswered); absent without a recent sample. + /// Round-trip time in milliseconds of the path messages to it go over (`swarm::rtt`); + /// absent without a recent value. rtt_ms: Option, /// Messages and payload bytes exchanged with it, by kind, since we started (or /// since it was last listed). -- cgit v1.3.1