From 0e6a849fc7a11d969fecb4c70823ee0d2e8bd73d Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 1 Mar 2022 18:20:26 +0000 Subject: [PATCH] bumps up crds-shards-bits (#23220) (#23412) The commit adjust CRDS_SHARDS_BITS up to be in-line with mask_bits in gossip pull request. This will avoid redundant filtering of irrelevant crds entries when responding to pull requests. (cherry picked from commit 1282277126473c1060cf863683d8dee2b7b7da7a) Co-authored-by: behzad nouri --- gossip/src/crds.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gossip/src/crds.rs b/gossip/src/crds.rs index eb7168aff9..b8b008dad4 100644 --- a/gossip/src/crds.rs +++ b/gossip/src/crds.rs @@ -52,7 +52,7 @@ use { }, }; -const CRDS_SHARDS_BITS: u32 = 8; +const CRDS_SHARDS_BITS: u32 = 12; // Number of vote slots to track in an lru-cache for metrics. const VOTE_SLOTS_METRICS_CAP: usize = 100;