From 82e936b0c982cf4c67739f1f4cd47efc0c9bc083 Mon Sep 17 00:00:00 2001 From: Mark Logan Date: Tue, 19 Jul 2022 21:15:30 -0700 Subject: [PATCH] Work around https://github.com/rust-lang/rust/issues/99492 --- .../sui-core/src/authority_active/execution_driver/mod.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/sui-core/src/authority_active/execution_driver/mod.rs b/crates/sui-core/src/authority_active/execution_driver/mod.rs index 462a234db5a98..c573685e8569b 100644 --- a/crates/sui-core/src/authority_active/execution_driver/mod.rs +++ b/crates/sui-core/src/authority_active/execution_driver/mod.rs @@ -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;