tokio-xmpp: Bump trust-dns to 0.20

This commit is contained in:
Emmanuel Gil Peyrot 2020-12-30 03:15:59 +01:00
parent a38ff39b77
commit dea95d06e1
2 changed files with 3 additions and 5 deletions

View file

@ -22,8 +22,8 @@ tokio = { version = "1", features = ["net", "rt", "rt-multi-thread", "macros"] }
tokio-util = { version = "0.6", features = ["codec"] } tokio-util = { version = "0.6", features = ["codec"] }
tokio-stream = { version = "0.1", features = [] } tokio-stream = { version = "0.1", features = [] }
tokio-tls = { package = "tokio-native-tls", version = "0.3" } tokio-tls = { package = "tokio-native-tls", version = "0.3" }
trust-dns-resolver = "0.19" trust-dns-resolver = "0.20"
trust-dns-proto = "0.19" trust-dns-proto = "0.20"
xml5ever = "0.16" xml5ever = "0.16"
xmpp-parsers = "0.17" xmpp-parsers = "0.17"

View file

@ -30,9 +30,7 @@ pub async fn connect(
return Ok(TcpStream::connect(&SocketAddr::new(ip, fallback_port)).await?); return Ok(TcpStream::connect(&SocketAddr::new(ip, fallback_port)).await?);
} }
let resolver = TokioAsyncResolver::tokio_from_system_conf() let resolver = TokioAsyncResolver::tokio_from_system_conf().map_err(ConnecterError::Resolve)?;
.await
.map_err(ConnecterError::Resolve)?;
let srv_records = match srv { let srv_records = match srv {
Some(srv) => { Some(srv) => {