summaryrefslogtreecommitdiff
path: root/runtime/ops/net.rs
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 /runtime/ops/net.rs
parent4ed1428c3401c9e6dc4d737bd7c9a50840054696 (diff)
cleanup(ops): remove unused ZeroCopyBuf arg-types (#10530)
Diffstat (limited to 'runtime/ops/net.rs')
-rw-r--r--runtime/ops/net.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/runtime/ops/net.rs b/runtime/ops/net.rs
index f7c8eeac4..c9195aab7 100644
--- a/runtime/ops/net.rs
+++ b/runtime/ops/net.rs
@@ -100,7 +100,7 @@ pub(crate) struct AcceptArgs {
async fn accept_tcp(
state: Rc<RefCell<OpState>>,
args: AcceptArgs,
- _zero_copy: Option<ZeroCopyBuf>,
+ _: (),
) -> Result<OpConn, AnyError> {
let rid = args.rid;
@@ -145,12 +145,12 @@ async fn accept_tcp(
async fn op_accept(
state: Rc<RefCell<OpState>>,
args: AcceptArgs,
- _buf: Option<ZeroCopyBuf>,
+ _: (),
) -> Result<OpConn, AnyError> {
match args.transport.as_str() {
- "tcp" => accept_tcp(state, args, _buf).await,
+ "tcp" => accept_tcp(state, args, ()).await,
#[cfg(unix)]
- "unix" => net_unix::accept_unix(state, args, _buf).await,
+ "unix" => net_unix::accept_unix(state, args, ()).await,
other => Err(bad_transport(other)),
}
}
@@ -288,7 +288,7 @@ struct ConnectArgs {
async fn op_connect(
state: Rc<RefCell<OpState>>,
args: ConnectArgs,
- _zero_copy: Option<ZeroCopyBuf>,
+ _: (),
) -> Result<OpConn, AnyError> {
match args {
ConnectArgs {
@@ -454,7 +454,7 @@ fn listen_udp(
fn op_listen(
state: &mut OpState,
args: ListenArgs,
- _zero_copy: Option<ZeroCopyBuf>,
+ _: (),
) -> Result<OpConn, AnyError> {
match args {
ListenArgs {
@@ -595,7 +595,7 @@ pub struct NameServer {
async fn op_dns_resolve(
state: Rc<RefCell<OpState>>,
args: ResolveAddrArgs,
- _zero_copy: Option<ZeroCopyBuf>,
+ _: (),
) -> Result<Vec<DnsReturnRecord>, AnyError> {
let ResolveAddrArgs {
query,