AccountsIndexStorage holds InMemAccountsIndex[] (#19947)
This commit is contained in:
committed by
GitHub
parent
49d3d79459
commit
66e0fafc21
@@ -745,7 +745,7 @@ impl<T: IndexValue> AccountsIndex<T> {
|
||||
let storage = AccountsIndexStorage::new(bins);
|
||||
let account_maps = (0..bins)
|
||||
.into_iter()
|
||||
.map(|bin| RwLock::new(Arc::new(InMemAccountsIndex::new(&storage, bin))))
|
||||
.map(|bin| RwLock::new(Arc::clone(&storage.in_mem[bin])))
|
||||
.collect::<Vec<_>>();
|
||||
(account_maps, bin_calculator, storage)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user