aatxe / irc

the irc crate – usable, async IRC for Rust
Mozilla Public License 2.0
527 stars 100 forks source link

Avoid synchronously resolving server address #189

Closed udoprog closed 4 years ago

udoprog commented 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.

aatxe commented 4 years ago

Good change, thanks!