diff options
| author | tv <tv@krebsco.de> | 2026-10-24 06:53:17 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-24 06:53:17 +0200 |
| commit | c43ec6fefa89b093066dba9a0e692c01579637dc (patch) | |
| tree | 29754df22b5770c3e2bea5ba7ee5959f327dba22 /src/state.rs | |
| parent | 37120cc143136bda1670fbb0d6f579fb8c83c2f6 (diff) | |
add node aliases
Diffstat (limited to 'src/state.rs')
| -rw-r--r-- | src/state.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/state.rs b/src/state.rs index d8f0bbf..7517b72 100644 --- a/src/state.rs +++ b/src/state.rs @@ -593,6 +593,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 alias (`--alias`), published in the member list (`swarm::members`). + pub(crate) alias: Option<String>, /// 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`). |
