summaryrefslogtreecommitdiff
path: root/ext/net/io.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/net/io.rs')
-rw-r--r--ext/net/io.rs14
1 files changed, 1 insertions, 13 deletions
diff --git a/ext/net/io.rs b/ext/net/io.rs
index 6a93b8cf6..6cefbde2d 100644
--- a/ext/net/io.rs
+++ b/ext/net/io.rs
@@ -1,6 +1,6 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
-use crate::ops_tls as tls;
+use crate::ops_tls::TlsStreamResource;
use deno_core::error::not_supported;
use deno_core::error::AnyError;
use deno_core::op_async;
@@ -114,18 +114,6 @@ impl Resource for TcpStreamResource {
}
}
-pub type TlsStreamResource = FullDuplexResource<tls::ReadHalf, tls::WriteHalf>;
-
-impl Resource for TlsStreamResource {
- fn name(&self) -> Cow<str> {
- "tlsStream".into()
- }
-
- fn close(self: Rc<Self>) {
- self.cancel_read_ops();
- }
-}
-
#[cfg(unix)]
pub type UnixStreamResource =
FullDuplexResource<unix::OwnedReadHalf, unix::OwnedWriteHalf>;