diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2019-11-04 16:38:52 +0100 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2019-11-04 10:38:52 -0500 |
commit | 0049d4e50c9dd945f25f69b08b08fbf492001f96 (patch) | |
tree | 3bcf3c50bdba9abba6b1b8ff9340f76fc19f759c /cli/compilers/json.rs | |
parent | 429439d1983269ba40141a1b42f6ac809d1e8c86 (diff) |
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
Diffstat (limited to 'cli/compilers/json.rs')
-rw-r--r-- | cli/compilers/json.rs | 2 |
1 files changed, 0 insertions, 2 deletions
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<CompiledModuleFuture> { let maybe_json_value: serde_json::Result<serde_json::Value> = |