From 4da17a5e40e34aea27a34241b4f692ae0c827f57 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 5 Nov 2026 00:56:39 +0100 Subject: neigbours by transport --- src/api/stats.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/api/stats.rs') diff --git a/src/api/stats.rs b/src/api/stats.rs index 3851ef7..306b6a2 100644 --- a/src/api/stats.rs +++ b/src/api/stats.rs @@ -187,6 +187,8 @@ struct TopologyView { stable: usize, neighbours: usize, stable_neighbours: usize, + /// Neighbours by our transports (`topology::Summary`). + neighbours_by_transport: std::collections::BTreeMap, /// Our own writer's tree (`swarm::tree::own_shape`); absent while we aren't in the /// member list's graph. own_tree: Option, @@ -382,6 +384,7 @@ pub(crate) async fn collect(state: &AppState, list: &PeerListResponse) -> StatsR stable: s.stable, neighbours: s.neighbours, stable_neighbours: s.stable_neighbours, + neighbours_by_transport: s.neighbours_by_transport, own_tree, }), }, -- cgit v1.3.1