remove type specifics to make funciton more flexible (#19536)

This commit is contained in:
Jeff Washington (jwash) 2021-08-31 20:03:42 -05:00 committed by GitHub
parent ac9a2522bd
commit 2df96cd81e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -718,7 +718,7 @@ impl<'a, T: IsCached> Iterator for AccountsIndexIterator<'a, T> {
return None;
}
let (start_bin, bin_range) = self.bin_start_and_range();
let mut chunk: Vec<(Pubkey, AccountMapEntry<T>)> = Vec::with_capacity(ITER_BATCH_SIZE);
let mut chunk = Vec::with_capacity(ITER_BATCH_SIZE);
'outer: for i in self.account_maps.iter().skip(start_bin).take(bin_range) {
for (pubkey, account_map_entry) in Self::range(
&i.read().unwrap(),