From 1912ed674097588adb7b83e7b78043b2168821f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 20 Nov 2019 01:17:05 +0100 Subject: remove tokio_util::block_on from ops/workers.rs (#3381) --- cli/compilers/wasm.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'cli/compilers/wasm.rs') diff --git a/cli/compilers/wasm.rs b/cli/compilers/wasm.rs index 882e28e43..2e565dd93 100644 --- a/cli/compilers/wasm.rs +++ b/cli/compilers/wasm.rs @@ -86,13 +86,14 @@ impl WasmCompiler { let worker_ = worker.clone(); let url = source_file.url.clone(); - let _res = worker.post_message( - serde_json::to_string(&base64_data) - .unwrap() - .into_boxed_str() - .into_boxed_bytes(), - ); let fut = worker + .post_message( + serde_json::to_string(&base64_data) + .unwrap() + .into_boxed_str() + .into_boxed_bytes(), + ) + .then(|_| worker) .then(move |result| { if let Err(err) = result { // TODO(ry) Need to forward the error instead of exiting. -- cgit v1.2.3