pub async fn refresh_relayer_health<G, F>(
registry: &SurbRoundTripRegistry,
graph: &G,
memory: u32,
weight: f64,
replan: impl FnOnce() -> F,
) -> Vec<HoprPseudonym> ⓘExpand description
Re-judges relayer health, records what changed in the graph, and re-plans when it or a neighbour changed, before writing off the SURBs of relayers judged dead. Recording precedes the re-plan, so the re-plan already avoids them; the write-off follows it, so the refill goes over new paths.
Returns the sessions whose SURB generation the caller should advance, as reported by
SurbRoundTripRegistry::write_off_dead. At weight 0 nothing is written off and none is returned.