aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authormurilo ijanc2026-03-25 16:52:03 -0300
committermurilo ijanc2026-03-25 16:52:03 -0300
commit4cff87560ba238ba6eebd16b1465c0ebae2f6ac2 (patch)
treeae9598973520d5cd6d4528f198dec7b9699c0f5e /src/lib.rs
parentc4076f54c9e66afb73081fd33b4176ba4407a8a5 (diff)
downloadtesseras-dht-4cff87560ba238ba6eebd16b1465c0ebae2f6ac2.tar.gz
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.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
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;