Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Get rid of runtime.block_on() in sc-network-test
  • Loading branch information
dmitry-markin committed Dec 15, 2022
commit ec8740c99ba5b6d3477caed903cb07f6bf957ca8
1 change: 1 addition & 0 deletions client/network/test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,7 @@ where
/// Calls `poll_until_sync` repeatedly.
/// (If we've not synced within 10 mins then panic rather than hang.)
async fn wait_until_sync(&mut self) {
// TODO: rename into run_until_sync() (and below).
timeout(
Duration::from_secs(10 * 60),
futures::future::poll_fn::<(), _>(|cx| self.poll_until_sync(cx)),
Expand Down
Loading