summaryrefslogtreecommitdiff
path: root/cli/ops/fetch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/ops/fetch.rs')
-rw-r--r--cli/ops/fetch.rs3
1 files changed, 1 insertions, 2 deletions
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)]