summaryrefslogtreecommitdiff
path: root/cli/ops/worker_host.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-02-05 02:40:38 -0500
committerGitHub <noreply@github.com>2020-02-05 08:40:38 +0100
commit55ea8546719579099a89132a5567919fd81742e9 (patch)
tree33a8d7827f71a0403b908fe79c3eb8e40eee64b1 /cli/ops/worker_host.rs
parent7d115a2a657fcfc54670e56cad3fe44fc7a59a9f (diff)
Move create_channels into worker constructor (#3889)
Diffstat (limited to 'cli/ops/worker_host.rs')
-rw-r--r--cli/ops/worker_host.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/cli/ops/worker_host.rs b/cli/ops/worker_host.rs
index b033b9ed9..c1dcd6aaa 100644
--- a/cli/ops/worker_host.rs
+++ b/cli/ops/worker_host.rs
@@ -99,12 +99,10 @@ fn op_create_worker(
result.unwrap()
};
- let (int, ext) = ThreadSafeState::create_channels();
let result = ThreadSafeState::new_for_worker(
parent_state.global_state.clone(),
Some(parent_state.permissions.clone()), // by default share with parent
module_specifier.clone(),
- int,
);
if let Err(err) = result {
load_sender.send(Err(err)).unwrap();
@@ -122,7 +120,6 @@ fn op_create_worker(
worker_name.to_string(),
startup_data::deno_isolate_init(),
child_state,
- ext,
);
let script = format!("bootstrapWorkerRuntime(\"{}\")", worker_name);
js_check(worker.execute(&script));