summaryrefslogtreecommitdiff
path: root/core/examples
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@gmail.com>2021-05-08 14:37:42 +0200
committerGitHub <noreply@github.com>2021-05-08 14:37:42 +0200
commitd5f39fd121b8f997dcfb360828f60cee47322ab3 (patch)
tree4eb4880060a861ac6ddfe27e5f62b8bc756b52b5 /core/examples
parent4ed1428c3401c9e6dc4d737bd7c9a50840054696 (diff)
cleanup(ops): remove unused ZeroCopyBuf arg-types (#10530)
Diffstat (limited to 'core/examples')
-rw-r--r--core/examples/http_bench_json_ops.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/examples/http_bench_json_ops.rs b/core/examples/http_bench_json_ops.rs
index f891caa9e..88556cea7 100644
--- a/core/examples/http_bench_json_ops.rs
+++ b/core/examples/http_bench_json_ops.rs
@@ -123,7 +123,7 @@ fn create_js_runtime() -> JsRuntime {
fn op_listen(
state: &mut OpState,
_args: (),
- _bufs: Option<ZeroCopyBuf>,
+ _: (),
) -> Result<ResourceId, AnyError> {
log::debug!("listen");
let addr = "127.0.0.1:4544".parse::<SocketAddr>().unwrap();
@@ -137,7 +137,7 @@ fn op_listen(
fn op_close(
state: &mut OpState,
rid: ResourceId,
- _buf: Option<ZeroCopyBuf>,
+ _: (),
) -> Result<(), AnyError> {
log::debug!("close rid={}", rid);
state
@@ -150,7 +150,7 @@ fn op_close(
async fn op_accept(
state: Rc<RefCell<OpState>>,
rid: ResourceId,
- _buf: Option<ZeroCopyBuf>,
+ _: (),
) -> Result<ResourceId, AnyError> {
log::debug!("accept rid={}", rid);