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:
4 files changed
+17
-25
No files matched your search
Generated
-7
@@ -155,12 +155,6 @@ version = "0.3.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
|
||||
|
||||
[[package]]
|
||||
name = "hashlru"
|
||||
version = "0.11.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d2c782df656366ccb42fbbac7c7c180535a43d906a138ffb491ec3ed56a239ab"
|
||||
|
||||
[[package]]
|
||||
name = "icmp-socket2"
|
||||
version = "0.4.2"
|
||||
@@ -426,7 +420,6 @@ dependencies = [
|
||||
"anyhow",
|
||||
"fastrand",
|
||||
"flume",
|
||||
"hashlru",
|
||||
"icmp-socket2",
|
||||
"libc",
|
||||
"log",
|
||||
|
||||
Reference in new issue
Block a user