Compile Platform impl

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile
2023-06-05 15:52:05 +03:00
parent b70beaf7a4
commit 853a71ec24
9 changed files with 1015 additions and 494 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ pub fn fetch_metadata_hex_blocking(
// Block on some tokio runtime for sync contexts
fn tokio_block_on<T, Fut: std::future::Future<Output = T>>(fut: Fut) -> T {
tokio::runtime::Builder::new_multi_thread()
tokio::runtime::Builder::new_current_thread()
.enable_all()
.build()
.unwrap()