Closed udoprog closed 4 years ago
std::net::ToSocketAddrs::to_socket_address might block the async function while the server address is being resolved, we instead return an impl of tokio's async plumbing for it and provide it directly to TcpStream::connect.
std::net::ToSocketAddrs::to_socket_address
TcpStream::connect
Good change, thanks!
std::net::ToSocketAddrs::to_socket_address
might block the async function while the server address is being resolved, we instead return an impl of tokio's async plumbing for it and provide it directly toTcpStream::connect
.