Use LRU in connection-cache (#24109)

Switch to using LRU for connection-cache
This commit is contained in:
ryleung-solana
2022-04-06 10:58:32 -04:00
committed by GitHub
parent c322842257
commit a38bd4acc8
5 changed files with 31 additions and 56 deletions

View File

@ -1636,6 +1636,15 @@ dependencies = [
"cfg-if 1.0.0",
]
[[package]]
name = "lru"
version = "0.7.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32613e41de4c47ab04970c348ca7ae7382cf116625755af070b008a15516a889"
dependencies = [
"hashbrown",
]
[[package]]
name = "matches"
version = "0.1.9"
@ -3368,6 +3377,7 @@ dependencies = [
"jsonrpc-core",
"lazy_static",
"log",
"lru",
"quinn",
"rand 0.7.3",
"rand_chacha 0.2.2",