diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-04-16 05:14:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 23:14:28 -0400 |
commit | aab26d226e32ac84da8c855388217b3ee781979d (patch) | |
tree | 118aef355e921f830ffbc6c6685f96138787b224 /cli/ops/compiler.rs | |
parent | fab0204cbf20cc1be7874266325bf258fe0ecaca (diff) |
remove calls to futures::executor::block_on (#4760)
Diffstat (limited to 'cli/ops/compiler.rs')
-rw-r--r-- | cli/ops/compiler.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/ops/compiler.rs b/cli/ops/compiler.rs index 37e6bfd28..f6f1dc34e 100644 --- a/cli/ops/compiler.rs +++ b/cli/ops/compiler.rs @@ -44,13 +44,12 @@ fn op_cache( let state_ = &state.borrow().global_state; let ts_compiler = state_.ts_compiler.clone(); - let fut = ts_compiler.cache_compiler_output( + ts_compiler.cache_compiler_output( &module_specifier, &args.extension, &args.contents, - ); + )?; - futures::executor::block_on(fut)?; Ok(JsonOp::Sync(json!({}))) } |