From fe4c11424d0ad8b155fe1b45c95b5b472a536b8e Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 28 Oct 2026 06:01:40 +0100 Subject: add location info to paths --- src/transport/stats.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/transport/stats.rs') diff --git a/src/transport/stats.rs b/src/transport/stats.rs index 12b2c99..6b99999 100644 --- a/src/transport/stats.rs +++ b/src/transport/stats.rs @@ -47,8 +47,13 @@ pub(crate) struct PathsStats { #[derive(Debug, Clone, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] pub(crate) struct PathInfo { - /// `:`. + /// `:`: whom the path goes to, as the transport knows it + /// (a libp2p peer ID, a Mycelium public key, a node key for Tor). pub(crate) address: String, + /// Where the path goes now (`Transport::location`): for libp2p, the remote address of + /// its connection; for Tor, the onion service. Absent where the address says it all + /// (Mycelium), or with no connection. + pub(crate) location: Option, /// Smoothed round-trip time of its PINGs (ours, and our keepalives); absent before /// an answer. pub(crate) rtt_ms: Option, -- cgit v1.3.1