From 2c1175b375ae3993c5ceaa4ea222dd8b7dd3ece1 Mon Sep 17 00:00:00 2001 From: FranciscaOrtegaG Date: Tue, 20 Aug 2024 09:52:44 -0400 Subject: [PATCH] change: tcp connection tls adaptation --- src/client/tcp_connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/tcp_connection.rs b/src/client/tcp_connection.rs index 0ab91e7d..aa2595be 100644 --- a/src/client/tcp_connection.rs +++ b/src/client/tcp_connection.rs @@ -87,7 +87,7 @@ impl ClientConnection for ClientTCPConnection { // let mut stream: TcpStream = TcpStream::connect_timeout(&server_addr,timeout)?; let conn_task = TcpStream::connect(&server_addr); - let mut stream: TcpStream = Stream::new(&connector, server_addr); + let mut stream: TcpStream = TcpStream::connect(server_addr).await?; // stream.set_read_timeout(Some(timeout))?; //-> Se hace con tokio // stream.write(&full_msg)?;