diff options
Diffstat (limited to 'cli/ops/workers.rs')
-rw-r--r-- | cli/ops/workers.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/ops/workers.rs b/cli/ops/workers.rs index ee60c6824..42f93ec57 100644 --- a/cli/ops/workers.rs +++ b/cli/ops/workers.rs @@ -271,7 +271,8 @@ fn op_host_post_message( let mut table = state.workers.lock().unwrap(); // TODO: don't return bad resource anymore let worker = table.get_mut(&id).ok_or_else(bad_resource)?; - tokio_util::block_on(worker.post_message(msg).boxed()) + worker + .post_message(msg) .map_err(|e| DenoError::new(ErrorKind::Other, e.to_string()))?; Ok(JsonOp::Sync(json!({}))) } |