diff --git a/mycelium/src/router.rs b/mycelium/src/router.rs index 02cf9c0..fca8ee1 100644 --- a/mycelium/src/router.rs +++ b/mycelium/src/router.rs @@ -422,13 +422,11 @@ where entry.set_metric(Metric::infinite()); entry.set_expires(tokio::time::Instant::now() + RETRACTED_ROUTE_HOLD_TIME); entry.selected() - } else if entry.metric().is_infinite() { + } else { debug!("Route {rk} expired, removing retracted route"); let selected = entry.selected(); entry.delete(); selected - } else { - unreachable!(); } };