summaryrefslogtreecommitdiff
path: root/runtime/ops/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/ops/mod.rs')
-rw-r--r--runtime/ops/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/ops/mod.rs b/runtime/ops/mod.rs
index 3ead7efa2..e5dba723a 100644
--- a/runtime/ops/mod.rs
+++ b/runtime/ops/mod.rs
@@ -48,7 +48,7 @@ pub fn reg_json_async<F, V, R, RV>(
R: Future<Output = Result<RV, AnyError>> + 'static,
RV: Serialize,
{
- rt.register_op(name, metrics_op(json_op_async(op_fn)));
+ rt.register_op(name, metrics_op(name, json_op_async(op_fn)));
}
pub fn reg_json_sync<F, V, R>(rt: &mut JsRuntime, name: &'static str, op_fn: F)
@@ -57,7 +57,7 @@ where
V: DeserializeOwned,
R: Serialize,
{
- rt.register_op(name, metrics_op(json_op_sync(op_fn)));
+ rt.register_op(name, metrics_op(name, json_op_sync(op_fn)));
}
/// `UnstableChecker` is a struct so it can be placed inside `GothamState`;