From 55ea8546719579099a89132a5567919fd81742e9 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 5 Feb 2020 02:40:38 -0500 Subject: Move create_channels into worker constructor (#3889) --- cli/compilers/compiler_worker.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cli/compilers/compiler_worker.rs') diff --git a/cli/compilers/compiler_worker.rs b/cli/compilers/compiler_worker.rs index 87144c1d0..f76395e75 100644 --- a/cli/compilers/compiler_worker.rs +++ b/cli/compilers/compiler_worker.rs @@ -2,7 +2,6 @@ use crate::ops; use crate::state::ThreadSafeState; use crate::worker::Worker; -use crate::worker::WorkerChannels; use deno_core; use deno_core::StartupData; use std::ops::Deref; @@ -28,10 +27,9 @@ impl CompilerWorker { name: String, startup_data: StartupData, state: ThreadSafeState, - external_channels: WorkerChannels, ) -> Self { let state_ = state.clone(); - let mut worker = Worker::new(name, startup_data, state_, external_channels); + let mut worker = Worker::new(name, startup_data, state_); { let isolate = &mut worker.isolate; ops::runtime::init(isolate, &state); -- cgit v1.2.3