summaryrefslogtreecommitdiffstats
path: root/src/state
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-26 20:33:29 +0100
committertv <tv@krebsco.de>2026-10-26 20:33:29 +0100
commitc7d6d626f7d9cad8c99741dab48559610c32ba7b (patch)
treedf9e56f99c8ccfb753a9cf29e72304f54b11501b /src/state
parent69d5b4585b382f4e8fdedd13c176399bce5df8e9 (diff)
add farewell ping
Diffstat (limited to 'src/state')
-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 04bdb3c..beac886 100644
--- a/src/state/mod.rs
+++ b/src/state/mod.rs
@@ -73,6 +73,8 @@ pub(crate) struct AppState {
pub(crate) change_tx: watch::Sender<u64>,
pub(crate) initial_sync_done: Arc<AtomicBool>,
+ /// The node is shutting down: its keepalives say it isn't ready (`peer::farewell`).
+ pub(crate) stopping: Arc<AtomicBool>,
pub(crate) change_events: broadcast::Sender<Arc<ChangeSet>>,