diff options
| author | tv <tv@krebsco.de> | 2026-10-26 20:33:29 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-26 20:33:29 +0100 |
| commit | 0b258070d483af3a4e6671be21fda64dbfa34e15 (patch) | |
| tree | 6eae9a0401df0be250c3599965e8674c0b2abcac /src/state/mod.rs | |
| parent | d26882574a2aabadb967fc67d3cb65bc1b1ddabe (diff) | |
add farewell ping
Diffstat (limited to 'src/state/mod.rs')
| -rw-r--r-- | src/state/mod.rs | 2 |
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>>, |
