Skip to content

Commit

Permalink
fix(node): removed into_iter().collect()
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed Nov 4, 2024
1 parent 43151a8 commit d8f2182
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 2 additions & 4 deletions crates/iota-core/src/authority.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4995,12 +4995,10 @@ impl TransactionKeyValueStoreTrait for AuthorityState {
&self,
digests: &[TransactionDigest],
) -> IotaResult<Vec<Option<CheckpointSequenceNumber>>> {
let res = self
Ok(self
.epoch_store
.load()
.multi_get_transaction_checkpoint(digests)?;

Ok(res.into_iter().collect())
.multi_get_transaction_checkpoint(digests)?)
}
}

Expand Down
4 changes: 1 addition & 3 deletions crates/iota-core/src/authority/authority_per_epoch_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8f2182

Please sign in to comment.