From 4cff87560ba238ba6eebd16b1465c0ebae2f6ac2 Mon Sep 17 00:00:00 2001 From: murilo ijanc Date: Wed, 25 Mar 2026 16:52:03 -0300 Subject: Remove stale peers without replacement from routing table When a peer exceeds STALE_THRESHOLD failures and the replacement cache is empty, remove it outright instead of leaving it in the bucket indefinitely. Prevents phantom peer accumulation in small clusters where the cache rarely fills. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index f956f98..1c663d6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -124,5 +124,5 @@ pub use id::NodeId; pub use nat::NatState; // Re-export sha2 for downstream crates. -pub use sha2; pub use node::Node; +pub use sha2; -- cgit v1.2.3