Skip to content

Commit

Permalink
Make the error magically go away
Browse files Browse the repository at this point in the history
  • Loading branch information
mystenmark committed Jul 20, 2022
1 parent 87a4524 commit 73302e1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions crates/sui-core/src/authority_active/execution_driver/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,19 @@ where

let sync_handle = active_authority.node_sync_handle();

let mut futures = sync_handle
.handle_execution_request(pending_transactions.iter().map(|(_, digest)| *digest));

let mut executed = Vec::new();
let mut pending_iter = pending_transactions.iter();
while let Some(result) = futures.next().await {
let (seq, _) = pending_iter.next().unwrap();
if result.is_ok() {
executed.push(*seq);
}
}

/*
// Send them for execution
let executed = sync_handle
// map to extract digest
Expand All @@ -92,6 +105,7 @@ where
.filter_map(|(result, seq)| async move { result.ok().map(|_| seq) })
.collect()
.await;
*/

// Now update the pending store.
active_authority
Expand Down

0 comments on commit 73302e1

Please sign in to comment.