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:
parent
a78ef393bf
commit
82288d4457
|
@ -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| {
|
||||
|
|
Loading…
Reference in New Issue