summaryrefslogtreecommitdiff
path: root/ext/net/ops_tls.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/net/ops_tls.rs')
-rw-r--r--ext/net/ops_tls.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/net/ops_tls.rs b/ext/net/ops_tls.rs
index 255c6ddbd..d16bface4 100644
--- a/ext/net/ops_tls.rs
+++ b/ext/net/ops_tls.rs
@@ -27,7 +27,6 @@ use deno_tls::create_client_config;
use deno_tls::load_certs;
use deno_tls::load_private_keys;
use deno_tls::rustls::Certificate;
-use deno_tls::rustls::ClientConnection;
use deno_tls::rustls::PrivateKey;
use deno_tls::rustls::ServerConfig;
use deno_tls::rustls::ServerName;
@@ -231,7 +230,8 @@ where
let tls_config = Arc::new(tls_config);
let tls_stream = TlsStream::new_client_side(
tcp_stream,
- ClientConnection::new(tls_config, hostname_dns).unwrap(),
+ tls_config,
+ hostname_dns,
TLS_BUFFER_SIZE,
);
@@ -327,7 +327,8 @@ where
let tls_stream = TlsStream::new_client_side(
tcp_stream,
- ClientConnection::new(tls_config, hostname_dns).unwrap(),
+ tls_config,
+ hostname_dns,
TLS_BUFFER_SIZE,
);