diff options
author | andy finch <andyfinch7@gmail.com> | 2019-06-17 21:02:08 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-06-17 18:02:08 -0700 |
commit | 76d51b0f9a4bd0ff86150d0dfa78df7c8410b7ea (patch) | |
tree | ee707fcac13634d999e39168702c4c51d429ebff /cli/state.rs | |
parent | 9ad5b0653e3821915d7ab7438d5ed4fe373c569a (diff) |
refactor dispatch take 2 (#2533)
Diffstat (limited to 'cli/state.rs')
-rw-r--r-- | cli/state.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cli/state.rs b/cli/state.rs index f5eb8ae7a..aa4690d44 100644 --- a/cli/state.rs +++ b/cli/state.rs @@ -15,9 +15,9 @@ use crate::resources; use crate::resources::ResourceId; use crate::worker::Worker; use deno::Buf; +use deno::CoreOp; use deno::Loader; use deno::ModuleSpecifier; -use deno::Op; use deno::PinnedBuf; use futures::future::Either; use futures::future::Shared; @@ -106,7 +106,11 @@ impl Deref for ThreadSafeState { } impl ThreadSafeState { - pub fn dispatch(&self, control: &[u8], zero_copy: Option<PinnedBuf>) -> Op { + pub fn dispatch( + &self, + control: &[u8], + zero_copy: Option<PinnedBuf>, + ) -> CoreOp { ops::dispatch_all(self, control, zero_copy, self.dispatch_selector) } } |