happy_eyeballs: enable parallel A/AAAA resolution

This commit is contained in:
Astro 2018-09-08 02:12:49 +02:00
commit 662c61b801
2 changed files with 19 additions and 7 deletions

View file

@ -62,7 +62,6 @@ impl Client {
.map_err(|_| Error::Idna)
.and_then(|domain|
done(Connecter::from_lookup(&domain, Some("_xmpp-client._tcp"), 5222))
.map_err(Error::Connection)
)
.flatten()
.and_then(move |tcp_stream|