summaryrefslogtreecommitdiff
path: root/cli/ops/fetch.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-02-25 09:14:27 -0500
committerGitHub <noreply@github.com>2020-02-25 09:14:27 -0500
commit91b606aaae23bcb790b55adc5fe70a182a37d564 (patch)
tree16b56a21ffcb3991569eda984fbd14073bdbd3ae /cli/ops/fetch.rs
parent805992b14a65a6dbfb857dea6d9b657477de043d (diff)
Clean up how we use opIds (#4118)
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)]