Bump lru crate (#24150)

This commit is contained in:
Tyera Eulberg 2022-04-06 18:18:42 -04:00 committed by GitHub
parent efb9cbd8e7
commit afeb1d3cca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 11 deletions

View File

@ -26,7 +26,7 @@ fs_extra = "1.2.0"
histogram = "0.6.9" histogram = "0.6.9"
itertools = "0.10.3" itertools = "0.10.3"
log = "0.4.14" log = "0.4.14"
lru = "0.7.3" lru = "0.7.5"
rand = "0.7.0" rand = "0.7.0"
rand_chacha = "0.2.2" rand_chacha = "0.2.2"
rayon = "1.5.1" rayon = "1.5.1"

View File

@ -18,7 +18,7 @@ flate2 = "1.0"
indexmap = { version = "1.8", features = ["rayon"] } indexmap = { version = "1.8", features = ["rayon"] }
itertools = "0.10.3" itertools = "0.10.3"
log = "0.4.14" log = "0.4.14"
lru = "0.7.3" lru = "0.7.5"
matches = "0.1.9" matches = "0.1.9"
num-traits = "0.2" num-traits = "0.2"
rand = "0.7.0" rand = "0.7.0"

View File

@ -536,14 +536,7 @@ pub(crate) fn submit_gossip_stats(
.pull .pull
.votes .votes
.into_iter() .into_iter()
.map(|(slot, num_votes)| (slot, num_votes)) .chain(crds_stats.push.votes.into_iter())
.chain(
crds_stats
.push
.votes
.into_iter()
.map(|(slot, num_votes)| (slot, num_votes)),
)
.into_grouping_map() .into_grouping_map()
.aggregate(|acc, _slot, num_votes| Some(acc.unwrap_or_default() + num_votes)); .aggregate(|acc, _slot, num_votes| Some(acc.unwrap_or_default() + num_votes));
submit_vote_stats("cluster_info_crds_stats_votes", &votes); submit_vote_stats("cluster_info_crds_stats_votes", &votes);

View File

@ -22,7 +22,7 @@ itertools = "0.10.3"
lazy_static = "1.4.0" lazy_static = "1.4.0"
libc = "0.2.120" libc = "0.2.120"
log = { version = "0.4.14" } log = { version = "0.4.14" }
lru = "0.7.3" lru = "0.7.5"
num-derive = "0.3" num-derive = "0.3"
num-traits = "0.2" num-traits = "0.2"
num_cpus = "1.13.1" num_cpus = "1.13.1"