From 0049d4e50c9dd945f25f69b08b08fbf492001f96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 4 Nov 2019 16:38:52 +0100 Subject: Refactor Worker and ThreadSafeState (#3242) * Split ThreadSafeState into State and GlobalState. State is a "local" state belonging to "Worker" while "GlobalState" is state shared by whole program. * Update "Worker" and ops to use "GlobalState" where applicable * Move and refactor "WorkerChannels" resource --- cli/compilers/json.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'cli/compilers/json.rs') diff --git a/cli/compilers/json.rs b/cli/compilers/json.rs index e61b38649..22a1d5f3d 100644 --- a/cli/compilers/json.rs +++ b/cli/compilers/json.rs @@ -2,7 +2,6 @@ use crate::compilers::CompiledModule; use crate::compilers::CompiledModuleFuture; use crate::file_fetcher::SourceFile; -use crate::state::ThreadSafeState; use deno::ErrBox; use regex::Regex; use std::str; @@ -15,7 +14,6 @@ pub struct JsonCompiler {} impl JsonCompiler { pub fn compile_async( self: &Self, - _state: ThreadSafeState, source_file: &SourceFile, ) -> Box { let maybe_json_value: serde_json::Result = -- cgit v1.2.3