Skip to content

Commit

Permalink
refactor: converts deprecated FuturesUnordered::push to FuturesUnorde…
Browse files Browse the repository at this point in the history
…red::push_back
  • Loading branch information
huitseeker committed Aug 16, 2022
1 parent 6f64988 commit cff7a37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/sui-core/src/authority_active/gossip/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ where
last_seq_in_cur_batch = seq;

let fut = handler.handle_digest(self, digests).await?;
results.push(async move {
results.push_back(async move {
fut.await?;
Ok::<(TxSequenceNumber, ExecutionDigests), SuiError>((seq, digests))
});
Expand Down
4 changes: 2 additions & 2 deletions crates/sui-core/src/node_sync/node_follower.rs
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ impl NodeSyncHandle {
let (tx, rx) = oneshot::channel();
let msg = DigestsMessage::new_for_ckpt(digests, tx);
Self::send_msg_with_tx(self.sender.clone(), msg).await?;
futures.push(Self::map_rx(rx));
futures.push_back(Self::map_rx(rx));
}

Ok(futures)
Expand All @@ -720,7 +720,7 @@ impl NodeSyncHandle {
let (tx, rx) = oneshot::channel();
let msg = DigestsMessage::new_for_exec_driver(&digest, tx);
Self::send_msg_with_tx(self.sender.clone(), msg).await?;
futures.push(Self::map_rx(rx));
futures.push_back(Self::map_rx(rx));
}

Ok(futures)
Expand Down

0 comments on commit cff7a37

Please sign in to comment.