aboutsummaryrefslogtreecommitdiffstats
path: root/src/state
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-03 00:26:42 +0100
committertv <tv@krebsco.de>2026-11-03 00:26:42 +0100
commit33ccc4e69998fc0610727d60816d1d4c2eb351a8 (patch)
treefa092f7dad61ecefcc7b635d6e57166fc3d0cdff /src/state
parent62b6b5ed2fbc3de520bae13338f93d1b362a44b9 (diff)
add stream heartbeat
Diffstat (limited to 'src/state')
-rw-r--r--src/state/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state/mod.rs b/src/state/mod.rs
index 36b1132..fef6448 100644
--- a/src/state/mod.rs
+++ b/src/state/mod.rs
@@ -115,6 +115,9 @@ pub(crate) struct AppState {
/// 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