diff options
Diffstat (limited to 'src/state')
| -rw-r--r-- | src/state/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/state/mod.rs b/src/state/mod.rs index aebc59a..fef6448 100644 --- a/src/state/mod.rs +++ b/src/state/mod.rs @@ -107,11 +107,17 @@ pub(crate) struct AppState { pub(crate) neighbours_k: usize, /// Our alias (`--alias`), published in the member list (`swarm::members`). pub(crate) alias: Option<String>, + /// Where people reach our dashboard (`--dashboard-url`), published in the member list + /// (`swarm::members`). + pub(crate) dashboard_url: Option<String>, /// Members alive within this window vote on remakes (`--electorate-window`). pub(crate) electorate_window: Duration, /// This node's clock is off when it differs from most of its peers' by more than /// this (`--clock-skew-warn`, `swarm::skew`); 0: never. pub(crate) clock_skew_warn: Duration, + /// How often `GET /stream` says it's alive while nothing changes + /// (`--stream-heartbeat`); 0: never. + pub(crate) stream_heartbeat: Duration, /// What a replay does with writes a newer one superseded (`--superseded-writes`). pub(crate) superseded_writes: crate::remake::Superseded, /// How far this node's clock is ahead of its peers' (their median, `swarm::skew`), as |
