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 | c7d6d626f7d9cad8c99741dab48559610c32ba7b (patch) | |
| tree | df9e56f99c8ccfb753a9cf29e72304f54b11501b /src/state/mod.rs | |
| parent | 69d5b4585b382f4e8fdedd13c176399bce5df8e9 (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>>, |
