From 91b606aaae23bcb790b55adc5fe70a182a37d564 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 25 Feb 2020 09:14:27 -0500 Subject: Clean up how we use opIds (#4118) --- cli/ops/files.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'cli/ops/files.rs') diff --git a/cli/ops/files.rs b/cli/ops/files.rs index 2fc41bc34..4bf8b1688 100644 --- a/cli/ops/files.rs +++ b/cli/ops/files.rs @@ -3,7 +3,6 @@ use super::dispatch_json::{Deserialize, JsonOp, Value}; use super::io::StreamResource; use crate::fs as deno_fs; use crate::op_error::OpError; -use crate::ops::json_op; use crate::state::State; use deno_core::*; use futures::future::FutureExt; @@ -14,9 +13,9 @@ use std::path::Path; use tokio; pub fn init(i: &mut Isolate, s: &State) { - i.register_op("open", s.core_op(json_op(s.stateful_op(op_open)))); - i.register_op("close", s.core_op(json_op(s.stateful_op(op_close)))); - i.register_op("seek", s.core_op(json_op(s.stateful_op(op_seek)))); + i.register_op("op_open", s.stateful_json_op(op_open)); + i.register_op("op_close", s.stateful_json_op(op_close)); + i.register_op("op_seek", s.stateful_json_op(op_seek)); } #[derive(Deserialize)] -- cgit v1.2.3