aboutsummaryrefslogtreecommitdiffstats
path: root/src/swarm/topology
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-01 20:36:17 +0100
committertv <tv@krebsco.de>2026-11-01 20:36:17 +0100
commite293047c25d7167f25af0a611b33545f12225b05 (patch)
tree51d31d9538cc2b1d988dd1b4faa6a5cc65c33f05 /src/swarm/topology
parent962fe4b43632822dc91fa6a4da6f6f295f4dba32 (diff)
peer worker sleeps until deadline, not fixed time
Diffstat (limited to 'src/swarm/topology')
-rw-r--r--src/swarm/topology/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/swarm/topology/mod.rs b/src/swarm/topology/mod.rs
index e494f34..30fa56e 100644
--- a/src/swarm/topology/mod.rs
+++ b/src/swarm/topology/mod.rs
@@ -368,6 +368,8 @@ pub(crate) async fn refresh(state: &AppState) -> Option<NeighbourChange> {
outbound,
neighbours: computed,
});
+ // New neighbours are kept alive and judged.
+ state.peers_due.now();
Some(change)
}