aboutsummaryrefslogtreecommitdiffstats
path: root/src/state/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/mod.rs')
-rw-r--r--src/state/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/state/mod.rs b/src/state/mod.rs
index d1a32df..7e87f31 100644
--- a/src/state/mod.rs
+++ b/src/state/mod.rs
@@ -68,6 +68,8 @@ pub(crate) struct AppState {
pub(crate) peer_states: Arc<RwLock<HashMap<String, Arc<Mutex<PeerState>>>>>,
pub(crate) transport: Arc<dyn transport::Transport>,
+ /// How members' neighbours are chosen (`swarm::topology::Topology`).
+ pub(crate) topology: Arc<dyn crate::swarm::topology::Topology>,
pub(crate) firewall: Arc<Firewall>,
/// Messages and bytes exchanged, per peer (`transport::traffic`).
pub(crate) traffic: Arc<transport::traffic::Traffic>,