Skip to content

Commit 84a8bca

Browse files
committed
util: create a full tokio runtime
1 parent ddd0477 commit 84a8bca

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/util/tokio.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ pub fn block_on_tokio<T>(fut: impl Future<Output = io::Result<T>>) -> io::Result
1111
if let Ok(handle) = Handle::try_current() {
1212
handle.block_on(fut)
1313
} else {
14-
tokio::runtime::Builder::new_current_thread()
15-
.enable_all()
16-
.build()?
17-
.block_on(fut)
14+
tokio::runtime::Runtime::new()?.block_on(fut)
1815
}
1916
}

0 commit comments

Comments
 (0)