From 46a7d204c81b002f960a9bca97941df7a98c43d4 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 30 Oct 2026 18:11:57 +0100 Subject: dashboard: show all links between peers --- src/transport/mod.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/transport/mod.rs') diff --git a/src/transport/mod.rs b/src/transport/mod.rs index a15a1f7..9d28212 100644 --- a/src/transport/mod.rs +++ b/src/transport/mod.rs @@ -428,6 +428,18 @@ pub(crate) struct Link { pub(crate) rtt_us: Option, /// Silent for long (`peers.md`, dormancy). pub(crate) dormant: bool, + /// The peer's other transports (`swarm::links::MAX_OTHERS` at most): where else + /// it proved itself, those paths up. + pub(crate) others: Vec, +} + +/// A transport of a link besides the one in use, in a LINKS_REPLY. +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] +pub(crate) struct OtherPath { + /// Its scheme (`mycelium`, `libp2p`, `tor`). + pub(crate) transport: String, + /// The round trip of its fastest path, in microseconds, if any is measured. + pub(crate) rtt_us: Option, } #[derive(Clone, Serialize, Deserialize)] -- cgit v1.3.1