Remove useless enumerate from test_hold_range_in_memory2 (#26683)
This commit is contained in:
parent
9f2f2a45cd
commit
b20edd232b
|
@ -1549,7 +1549,7 @@ mod tests {
|
||||||
assert_eq!(0, idx.bin_calculator.bin_from_pubkey(&range2.start));
|
assert_eq!(0, idx.bin_calculator.bin_from_pubkey(&range2.start));
|
||||||
assert_eq!(0, idx.bin_calculator.bin_from_pubkey(&range2.end));
|
assert_eq!(0, idx.bin_calculator.bin_from_pubkey(&range2.end));
|
||||||
accts.hold_range_in_memory(&range, true, &test_thread_pool());
|
accts.hold_range_in_memory(&range, true, &test_thread_pool());
|
||||||
idx.account_maps.iter().enumerate().for_each(|(_bin, map)| {
|
idx.account_maps.iter().for_each(|map| {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
map.cache_ranges_held.read().unwrap().to_vec(),
|
map.cache_ranges_held.read().unwrap().to_vec(),
|
||||||
vec![range.clone()]
|
vec![range.clone()]
|
||||||
|
|
Loading…
Reference in New Issue