From 34989e5140eaa16e17a0ab4501e64e779215e3d1 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 25 Oct 2026 22:12:27 +0100 Subject: recompute neighbours whenever topology changes --- src/state.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/state.rs') diff --git a/src/state.rs b/src/state.rs index af01cf0..ee7fa7a 100644 --- a/src/state.rs +++ b/src/state.rs @@ -632,6 +632,9 @@ pub(crate) struct AppState { pub(crate) announce_pending: Arc>>>, /// Our neighbours, once known (`swarm::topology`). pub(crate) neighbours: Arc>>, + /// Something the neighbours are computed from may have changed: the member list or a + /// peer's reachability (`swarm::topology::run_worker`). + pub(crate) topology_changed: Arc, /// While rejoining a newer epoch, the previous document, served read-only (and /// marked stale) instead of answering 503. -- cgit v1.3.1