From 88d0f01948b68f4a4d87e02a5138e94ac0a6eaea Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Mon, 14 Mar 2022 23:38:53 +0100 Subject: feat(ops): custom arity (#13949) Also cleanup & drop ignored wildcard op-args --- core/examples/http_bench_json_ops.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/examples/http_bench_json_ops.rs') diff --git a/core/examples/http_bench_json_ops.rs b/core/examples/http_bench_json_ops.rs index 3f608eeae..2068c3b85 100644 --- a/core/examples/http_bench_json_ops.rs +++ b/core/examples/http_bench_json_ops.rs @@ -135,7 +135,7 @@ fn create_js_runtime() -> JsRuntime { } #[op] -fn op_listen(state: &mut OpState, _: (), _: ()) -> Result { +fn op_listen(state: &mut OpState) -> Result { log::debug!("listen"); let addr = "127.0.0.1:4544".parse::().unwrap(); let std_listener = std::net::TcpListener::bind(&addr)?; @@ -149,7 +149,6 @@ fn op_listen(state: &mut OpState, _: (), _: ()) -> Result { async fn op_accept( state: Rc>, rid: ResourceId, - _: (), ) -> Result { log::debug!("accept rid={}", rid); -- cgit v1.2.3