summaryrefslogtreecommitdiffstats
path: root/src/state.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-24 05:37:20 +0200
committertv <tv@krebsco.de>2026-10-24 05:38:29 +0200
commit8c7897b03cb35516b7542544541b98694b40bf6f (patch)
tree9654a13760050a17b297df6e12d7e2827401784a /src/state.rs
parent6d6962c5cad66d45ff3c1c5a97b405b40206138c (diff)
assess swarm stability
Diffstat (limited to 'src/state.rs')
-rw-r--r--src/state.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/state.rs b/src/state.rs
index 9d567a8..769dbad 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -542,6 +542,8 @@ pub(crate) struct AppState {
/// Target number of neighbours (`--neighbours`); up to this many + 1 members the
/// swarm is a full mesh.
pub(crate) neighbours_k: usize,
+ /// Our own connectivity record and stability tier (`swarm::stability`).
+ pub(crate) stability: Arc<std::sync::Mutex<crate::swarm::stability::Stability>>,
/// Round-trip times to peers (`swarm::rtt`).
pub(crate) rtt: Arc<std::sync::Mutex<crate::swarm::rtt::RttTable>>,
/// The neighbour we are pulling changes from, and since when (`swarm::relay`).