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/fetch.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cli/ops/fetch.rs') diff --git a/cli/ops/fetch.rs b/cli/ops/fetch.rs index efcadc6a0..9f36ad5fd 100644 --- a/cli/ops/fetch.rs +++ b/cli/ops/fetch.rs @@ -3,7 +3,6 @@ use super::dispatch_json::{Deserialize, JsonOp, Value}; use super::io::StreamResource; use crate::http_util::{create_http_client, HttpBody}; use crate::op_error::OpError; -use crate::ops::json_op; use crate::state::State; use deno_core::*; use futures::future::FutureExt; @@ -14,7 +13,7 @@ use std; use std::convert::From; pub fn init(i: &mut Isolate, s: &State) { - i.register_op("fetch", s.core_op(json_op(s.stateful_op(op_fetch)))); + i.register_op("op_fetch", s.stateful_json_op(op_fetch)); } #[derive(Deserialize)] -- cgit v1.2.3