diff --git a/crates/iota-core/src/authority.rs b/crates/iota-core/src/authority.rs index 6567d11df5c..a786b9f4a6d 100644 --- a/crates/iota-core/src/authority.rs +++ b/crates/iota-core/src/authority.rs @@ -4995,12 +4995,10 @@ impl TransactionKeyValueStoreTrait for AuthorityState { &self, digests: &[TransactionDigest], ) -> IotaResult>> { - let res = self + Ok(self .epoch_store .load() - .multi_get_transaction_checkpoint(digests)?; - - Ok(res.into_iter().collect()) + .multi_get_transaction_checkpoint(digests)?) } } diff --git a/crates/iota-core/src/authority/authority_per_epoch_store.rs b/crates/iota-core/src/authority/authority_per_epoch_store.rs index e723bbbee3a..335d883d03c 100644 --- a/crates/iota-core/src/authority/authority_per_epoch_store.rs +++ b/crates/iota-core/src/authority/authority_per_epoch_store.rs @@ -1464,9 +1464,7 @@ impl AuthorityPerEpochStore { Ok(self .tables()? .executed_transactions_to_checkpoint - .multi_get(digests)? - .into_iter() - .collect()) + .multi_get(digests)?) } // For each id in objects_to_init, return the next version for that id as