diff --git a/runtime/src/accounts_index.rs b/runtime/src/accounts_index.rs index 81852c8d43..b32ceccab6 100644 --- a/runtime/src/accounts_index.rs +++ b/runtime/src/accounts_index.rs @@ -623,7 +623,7 @@ pub struct AccountsIndexRootsStats { pub unrooted_cleaned_count: usize, } -pub struct AccountsIndexIterator<'a, T> { +pub struct AccountsIndexIterator<'a, T: IsCached> { account_maps: &'a LockMapTypeSlice, bin_calculator: &'a PubkeyBinCalculator16, start_bound: Bound, @@ -632,7 +632,7 @@ pub struct AccountsIndexIterator<'a, T> { collect_all_unsorted: bool, } -impl<'a, T> AccountsIndexIterator<'a, T> { +impl<'a, T: IsCached> AccountsIndexIterator<'a, T> { fn range<'b, R>( map: &'b AccountMapsReadLock<'b, T>, range: R, @@ -778,7 +778,7 @@ impl ScanSlotTracker { } #[derive(Debug)] -pub struct AccountsIndex { +pub struct AccountsIndex { pub account_maps: LockMapType, pub bin_calculator: PubkeyBinCalculator16, program_id_index: SecondaryIndex,