AcctIdx: pass bins to BucketMapHolder (#19906)

This commit is contained in:
Jeff Washington (jwash)
2021-09-15 13:07:53 -05:00
committed by GitHub
parent 99f2c746d1
commit eddd583cd5
4 changed files with 8 additions and 12 deletions

View File

@@ -742,7 +742,7 @@ impl<T: IndexValue> AccountsIndex<T> {
.unwrap_or(BINS_DEFAULT);
// create bin_calculator early to verify # bins is reasonable
let bin_calculator = PubkeyBinCalculator16::new(bins);
let storage = AccountsIndexStorage::new();
let storage = AccountsIndexStorage::new(bins);
let account_maps = (0..bins)
.into_iter()
.map(|bin| RwLock::new(Arc::new(InMemAccountsIndex::new(&storage, bin))))