summaryrefslogtreecommitdiff
path: root/runtime/ops/worker_host.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/ops/worker_host.rs')
-rw-r--r--runtime/ops/worker_host.rs14
1 files changed, 5 insertions, 9 deletions
diff --git a/runtime/ops/worker_host.rs b/runtime/ops/worker_host.rs
index 2f297fb08..92de420e3 100644
--- a/runtime/ops/worker_host.rs
+++ b/runtime/ops/worker_host.rs
@@ -80,15 +80,11 @@ pub fn init(
let create_module_loader = CreateWebWorkerCbHolder(create_web_worker_cb);
state.put::<CreateWebWorkerCbHolder>(create_module_loader);
}
- super::reg_json_sync(rt, "op_create_worker", op_create_worker);
- super::reg_json_sync(
- rt,
- "op_host_terminate_worker",
- op_host_terminate_worker,
- );
- super::reg_json_sync(rt, "op_host_post_message", op_host_post_message);
- super::reg_json_async(rt, "op_host_get_message", op_host_get_message);
- super::reg_json_sync(
+ super::reg_sync(rt, "op_create_worker", op_create_worker);
+ super::reg_sync(rt, "op_host_terminate_worker", op_host_terminate_worker);
+ super::reg_sync(rt, "op_host_post_message", op_host_post_message);
+ super::reg_async(rt, "op_host_get_message", op_host_get_message);
+ super::reg_sync(
rt,
"op_host_unhandled_error",
move |_state, message: String, _zero_copy| {