accounts_db::get_all_accounts: Select slots with an iterator (#30581)

As `Range` is a special case of an `Iterator`, this is a generalization
that makes `get_all_accounts()` accept other kinds of ranges.  Such as
`RangeInclusive`.
This commit is contained in:
Illia Bobyr 2023-03-06 12:30:50 -08:00 committed by GitHub
parent a78ef393bf
commit 82288d4457
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -17362,7 +17362,7 @@ pub mod tests {
pub(crate) fn get_all_accounts(
db: &AccountsDb,
slots: Range<Slot>,
slots: impl Iterator<Item = Slot>,
) -> Vec<(Pubkey, AccountSharedData)> {
slots
.filter_map(|slot| {