Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Bastian Köcher <[email protected]>
  • Loading branch information
dmitry-markin and bkchr authored Feb 13, 2023
1 parent faec2e9 commit 9fa646d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions client/network/src/service/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ impl TestNetwork {
let service = worker.service().clone();
let event_stream = service.event_stream("test");

tokio::spawn(async move {
worker.run().await;
});
tokio::spawn(
worker.run()
);

(service, event_stream)
}
Expand Down
5 changes: 2 additions & 3 deletions client/network/test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1065,9 +1065,8 @@ where
for (i, peer) in peers.iter_mut().enumerate() {
trace!(target: "sync", "-- Polling {}: {}", i, peer.id());
{
let net_poll_future = peer.network.run();
pin_mut!(net_poll_future);
let _ = net_poll_future.poll(cx);
peer.network.next_action().poll(cx);

}
trace!(target: "sync", "-- Polling complete {}: {}", i, peer.id());

Expand Down

0 comments on commit 9fa646d

Please sign in to comment.