refactor(pinger): replace hashlru with standard HashMap and manual TTL cleanup

Remove the hashlru dependency to reduce bloat, replacing it with a Mutex-wrapped HashMap and manual entry expiration logic.
This commit is contained in:
Nils Andreas Svee committed 2026-04-23 00:33:07 +07:00
1 parent 6f16f3a93c
commit 58d536bb22
4 files changed
+17 -25

No files matched your search

+2 -1
View File
@@ -195,7 +195,8 @@ fn main() -> anyhow::Result<()> {
"In-flight probe cache capacity: {} (active_reflectors={}, reselection_enabled={}, tick_interval_s={})",
inflight_probe_capacity, active_reflector_count, reselection_enabled, config.tick_interval
);
let inflight: InFlightProbeCache = InFlightProbeCache::new(inflight_probe_capacity);
let inflight: InFlightProbeCache =
Arc::new(Mutex::new(HashMap::with_capacity(inflight_probe_capacity)));
let baseliner = Baseliner {
config: config.clone(),