AcctIdx: items() uses held ranges (#21954)

This commit is contained in:
Jeff Washington (jwash)
2021-12-17 09:59:29 -06:00
committed by GitHub
parent af53d2f692
commit 729698e815
4 changed files with 13 additions and 10 deletions

View File

@@ -668,7 +668,7 @@ impl<'a, T: IndexValue> AccountsIndexIterator<'a, T> {
where
R: RangeBounds<Pubkey> + std::fmt::Debug,
{
let mut result = map.items(&Some(&range));
let mut result = map.items(&range);
if !collect_all_unsorted {
result.sort_unstable_by(|a, b| a.0.cmp(&b.0));
}