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)?;