diff options
| author | tv <tv@krebsco.de> | 2026-10-24 20:33:02 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-24 20:33:02 +0200 |
| commit | 1e3cafe8cd1cfcb98798b063c31282db5cff8d33 (patch) | |
| tree | 3f5fce819a247fc4fef198a08214c46392e40fb0 /src/state.rs | |
| parent | 5f04e6a8aa9fc28a7fdeb44b6e9c528b1aa587bd (diff) | |
coalesce announcements
Diffstat (limited to 'src/state.rs')
| -rw-r--r-- | src/state.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state.rs b/src/state.rs index 0dd3a81..9c5552f 100644 --- a/src/state.rs +++ b/src/state.rs @@ -613,6 +613,9 @@ pub(crate) struct AppState { pub(crate) throughput: Arc<std::sync::Mutex<ThroughputTable>>, /// The neighbour we are pulling changes from, and since when (`swarm::relay`). pub(crate) pulling: Arc<std::sync::Mutex<Option<(String, Instant)>>>, + /// An announcement round is scheduled, for changes from these peers + /// (`swarm::relay`). + pub(crate) announce_pending: Arc<std::sync::Mutex<Option<std::collections::HashSet<String>>>>, /// Our neighbours, once known (`swarm::topology`). pub(crate) neighbours: Arc<std::sync::RwLock<Option<crate::swarm::topology::NeighbourView>>>, |
