Skip to content

Commit

Permalink
Work around rust-lang/rust#99492
Browse files Browse the repository at this point in the history
  • Loading branch information
mystenmark committed Jul 20, 2022
1 parent 87a4524 commit 82e936b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/sui-core/src/authority_active/execution_driver/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,9 @@ where
// map to extract digest
.handle_execution_request(pending_transactions.iter().map(|(_, digest)| *digest))
// zip results back together with seq
.zip(stream::iter(
pending_transactions.iter().map(|(seq, _)| *seq),
))
.zip(stream::iter(pending_transactions.iter()))
// filter out errors
.filter_map(|(result, seq)| async move { result.ok().map(|_| seq) })
.filter_map(|(result, (seq, _))| async move { result.ok().map(|_| seq) })
.collect()
.await;

Expand Down

0 comments on commit 82e936b

Please sign in to comment.