diff options
Diffstat (limited to 'src/swarm/topology')
| -rw-r--r-- | src/swarm/topology/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/swarm/topology/mod.rs b/src/swarm/topology/mod.rs index 1f99cd8..9e79225 100644 --- a/src/swarm/topology/mod.rs +++ b/src/swarm/topology/mod.rs @@ -640,13 +640,15 @@ pub(crate) fn change_peer<T>( let result = change(peer_state); if peer_state.neighbour_inputs() != before { state.topology_changed.notify_one(); + state.housekeeping.notify_one(); } result } /// Recomputes the neighbours whenever something they depend on may have changed /// (`AppState::topology_changed`): the member list (`swarm::changes::run_change_publisher`), -/// a peer's state (`change_peer`), and every 5 s as a fallback (`swarm::peer`). A burst +/// a peer's state (`change_peer`), and with the peer worker's periodic checks as a +/// fallback (`swarm::peer`). A burst /// of notifications coalesces into one recomputation. pub(crate) async fn run_worker(state: AppState) { info!( |
