@@ -405,25 +405,30 @@ impl IndexStoreTables {
405405 & self ,
406406 owner : IotaAddress ,
407407 cursor : Option < ObjectID > ,
408- ) -> Result < impl Iterator < Item = ( OwnerIndexKey , OwnerIndexInfo ) > + ' _ , TypedStoreError > {
408+ ) -> Result <
409+ impl Iterator < Item = Result < ( OwnerIndexKey , OwnerIndexInfo ) , TypedStoreError > > + ' _ ,
410+ TypedStoreError ,
411+ > {
409412 let lower_bound = OwnerIndexKey :: new ( owner, cursor. unwrap_or ( ObjectID :: ZERO ) ) ;
410413 let upper_bound = OwnerIndexKey :: new ( owner, ObjectID :: MAX ) ;
411414 Ok ( self
412415 . owner
413- . iter_with_bounds ( Some ( lower_bound) , Some ( upper_bound) ) )
416+ . safe_iter_with_bounds ( Some ( lower_bound) , Some ( upper_bound) ) )
414417 }
415418
416419 fn dynamic_field_iter (
417420 & self ,
418421 parent : ObjectID ,
419422 cursor : Option < ObjectID > ,
420- ) -> Result < impl Iterator < Item = ( DynamicFieldKey , DynamicFieldIndexInfo ) > + ' _ , TypedStoreError >
421- {
423+ ) -> Result <
424+ impl Iterator < Item = Result < ( DynamicFieldKey , DynamicFieldIndexInfo ) , TypedStoreError > > + ' _ ,
425+ TypedStoreError ,
426+ > {
422427 let lower_bound = DynamicFieldKey :: new ( parent, cursor. unwrap_or ( ObjectID :: ZERO ) ) ;
423428 let upper_bound = DynamicFieldKey :: new ( parent, ObjectID :: MAX ) ;
424429 let iter = self
425430 . dynamic_field
426- . iter_with_bounds ( Some ( lower_bound) , Some ( upper_bound) ) ;
431+ . safe_iter_with_bounds ( Some ( lower_bound) , Some ( upper_bound) ) ;
427432 Ok ( iter)
428433 }
429434
@@ -550,16 +555,21 @@ impl RestIndexStore {
550555 & self ,
551556 owner : IotaAddress ,
552557 cursor : Option < ObjectID > ,
553- ) -> Result < impl Iterator < Item = ( OwnerIndexKey , OwnerIndexInfo ) > + ' _ , TypedStoreError > {
558+ ) -> Result <
559+ impl Iterator < Item = Result < ( OwnerIndexKey , OwnerIndexInfo ) , TypedStoreError > > + ' _ ,
560+ TypedStoreError ,
561+ > {
554562 self . tables . owner_iter ( owner, cursor)
555563 }
556564
557565 pub fn dynamic_field_iter (
558566 & self ,
559567 parent : ObjectID ,
560568 cursor : Option < ObjectID > ,
561- ) -> Result < impl Iterator < Item = ( DynamicFieldKey , DynamicFieldIndexInfo ) > + ' _ , TypedStoreError >
562- {
569+ ) -> Result <
570+ impl Iterator < Item = Result < ( DynamicFieldKey , DynamicFieldIndexInfo ) , TypedStoreError > > + ' _ ,
571+ TypedStoreError ,
572+ > {
563573 self . tables . dynamic_field_iter ( parent, cursor)
564574 }
565575
0 commit comments