aboutsummaryrefslogtreecommitdiff
path: root/net/src/transports/ws.rs
diff options
context:
space:
mode:
Diffstat (limited to 'net/src/transports/ws.rs')
-rw-r--r--net/src/transports/ws.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/net/src/transports/ws.rs b/net/src/transports/ws.rs
index f2fde90..eb339ca 100644
--- a/net/src/transports/ws.rs
+++ b/net/src/transports/ws.rs
@@ -10,16 +10,14 @@ use rustls_pki_types as pki_types;
#[cfg(feature = "tokio")]
use async_tungstenite::tokio as async_tungstenite;
-#[cfg(all(feature = "smol", feature = "tls"))]
-use futures_rustls::{rustls, TlsAcceptor, TlsConnector};
-#[cfg(all(feature = "tokio", feature = "tls"))]
-use tokio_rustls::{rustls, TlsAcceptor, TlsConnector};
-
use karyon_core::async_runtime::{
lock::Mutex,
net::{TcpListener, TcpStream},
};
+#[cfg(feature = "tls")]
+use crate::async_rustls::{rustls, TlsAcceptor, TlsConnector};
+
use crate::{
codec::WebSocketCodec,
connection::{Conn, Connection, ToConn},