refactor: use core ResourceTable in cli (#3206)

This commit is contained in:
Bartek Iwańczuk 2019-10-29 01:42:44 +01:00 committed by Ry Dahl
parent 2f0f236d56
commit a7992e7703
10 changed files with 261 additions and 270 deletions

View file

@ -274,6 +274,7 @@ impl TsCompiler {
let compiler_rid = resource.rid;
let first_msg_fut =
resources::post_message_to_worker(compiler_rid, req_msg)
.expect("Bad compiler rid")
.then(move |_| worker)
.then(move |result| {
if let Err(err) = result {
@ -382,6 +383,7 @@ impl TsCompiler {
let compiler_rid = resource.rid;
let first_msg_fut =
resources::post_message_to_worker(compiler_rid, req_msg)
.expect("Bad compiler rid")
.then(move |_| worker)
.then(move |result| {
if let Err(err) = result {