diff options
| author | tv <tv@krebsco.de> | 2026-10-28 06:35:27 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-28 06:35:27 +0100 |
| commit | 082587a4156eb46e89554d87a769be99cc18a2d4 (patch) | |
| tree | 8a8114df378c8621dd8608a54d6bacc266af7436 /src/transport/stats.rs | |
| parent | f339b848e60b4dc66b1d9721eaf85a5df6c55d78 (diff) | |
show peer destination path address in canonical form
Diffstat (limited to 'src/transport/stats.rs')
| -rw-r--r-- | src/transport/stats.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/transport/stats.rs b/src/transport/stats.rs index 8b456cc..398ffdf 100644 --- a/src/transport/stats.rs +++ b/src/transport/stats.rs @@ -47,13 +47,11 @@ pub(crate) struct PathsStats { #[derive(Debug, Clone, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] pub(crate) struct PathInfo { - /// `<scheme>:<transport identity>`: whom the path goes to, as the transport knows it - /// (a libp2p peer ID, a Mycelium public key, an onion service). + /// `<scheme>:<where it goes>`: where the transport says the path goes now + /// (`Transport::location`; libp2p: the remote address of its connection, ending in + /// the peer ID), else whom it goes to, `<scheme>:<transport identity>` (a libp2p + /// peer ID without a connection, a Mycelium public key, an onion service). pub(crate) address: String, - /// Where the path goes now (`Transport::location`): for libp2p, the remote address of - /// its connection. Absent where the address says it all (Mycelium, Tor), or with no - /// connection. - pub(crate) location: Option<String>, /// Smoothed round-trip time of its PINGs (ours, and our keepalives); absent before /// an answer. pub(crate) rtt_ms: Option<f64>, |
