Skip to content

Commit

Permalink
maybe same tokio runtime for all compiler tasks?
Browse files Browse the repository at this point in the history
  • Loading branch information
afinch7 committed Mar 28, 2019
1 parent 58de310 commit e6a3bab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ pub fn compile_sync(
let specifier_ = specifier.clone().to_string();
let referrer_ = referrer.clone().to_string();

tokio::spawn(lazy(move || {
let mut runtime = C_RUNTIME.lock().unwrap();
runtime.spawn(lazy(move || {
debug!(
"Running rust part of compile_sync specifier: {} referrer: {}",
specifier_, referrer_
Expand Down

0 comments on commit e6a3bab

Please sign in to comment.