Skip to content

Commit 73302e1

Browse files
committed
Make the error magically go away
1 parent 87a4524 commit 73302e1

File tree

1 file changed

+14
-0
lines changed
  • crates/sui-core/src/authority_active/execution_driver

1 file changed

+14
-0
lines changed

crates/sui-core/src/authority_active/execution_driver/mod.rs

+14
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,19 @@ where
8080

8181
let sync_handle = active_authority.node_sync_handle();
8282

83+
let mut futures = sync_handle
84+
.handle_execution_request(pending_transactions.iter().map(|(_, digest)| *digest));
85+
86+
let mut executed = Vec::new();
87+
let mut pending_iter = pending_transactions.iter();
88+
while let Some(result) = futures.next().await {
89+
let (seq, _) = pending_iter.next().unwrap();
90+
if result.is_ok() {
91+
executed.push(*seq);
92+
}
93+
}
94+
95+
/*
8396
// Send them for execution
8497
let executed = sync_handle
8598
// map to extract digest
@@ -92,6 +105,7 @@ where
92105
.filter_map(|(result, seq)| async move { result.ok().map(|_| seq) })
93106
.collect()
94107
.await;
108+
*/
95109

96110
// Now update the pending store.
97111
active_authority

0 commit comments

Comments
 (0)