Use LRU in connection-cache (#24109) (#24322)

Switch to using LRU for connection-cache

Co-authored-by: ryleung-solana <91908731+ryleung-solana@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2022-04-13 21:21:19 -04:00
committed by GitHub
parent ec1d06240c
commit 0e6ba29859
4 changed files with 27 additions and 52 deletions

View File

@ -1620,6 +1620,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"
@ -3339,6 +3348,7 @@ dependencies = [
"jsonrpc-core",
"lazy_static",
"log",
"lru",
"quinn",
"rand 0.7.3",
"rand_chacha 0.2.2",