diff options
| author | tv <tv@krebsco.de> | 2026-10-24 20:33:02 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-24 20:35:53 +0200 |
| commit | 7006d0a2a97ffe3de13819b727539f3e21d6ce04 (patch) | |
| tree | 8bab91d52132a574a34287147b5d364da9e73058 /src/state.rs | |
| parent | 5b183eb19185b5ecbf36ad8e4f279dd4228f485c (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>>>, |
