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 | 7f4aa0f14a6f5082ad28548d0e735a65b17c58b2 (patch) | |
| tree | 40ab3b27ad7a3d4e65874d867ccb5329f27bd1ef /src/state.rs | |
| parent | 9c36b34e4ce5ac9c444775ce7e2d170cbbba9f3c (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>>>, |
