size and per-bin stats (#19842)

This commit is contained in:
Jeff Washington (jwash)
2021-09-13 19:26:49 -05:00
committed by GitHub
parent 87a7f00926
commit dca49a614f
3 changed files with 55 additions and 13 deletions

View File

@@ -734,7 +734,7 @@ impl<T: IsCached> AccountsIndex<T> {
let storage = AccountsIndexStorage::new();
let account_maps = (0..bins)
.into_iter()
.map(|_bin| RwLock::new(AccountMap::new(&storage)))
.map(|bin| RwLock::new(AccountMap::new(&storage, bin)))
.collect::<Vec<_>>();
(account_maps, bin_calculator, storage)
}