tokio-xmpp: Bump trust-dns to 0.20
This commit is contained in:
parent
a38ff39b77
commit
dea95d06e1
2 changed files with 3 additions and 5 deletions
|
|
@ -30,9 +30,7 @@ pub async fn connect(
|
|||
return Ok(TcpStream::connect(&SocketAddr::new(ip, fallback_port)).await?);
|
||||
}
|
||||
|
||||
let resolver = TokioAsyncResolver::tokio_from_system_conf()
|
||||
.await
|
||||
.map_err(ConnecterError::Resolve)?;
|
||||
let resolver = TokioAsyncResolver::tokio_from_system_conf().map_err(ConnecterError::Resolve)?;
|
||||
|
||||
let srv_records = match srv {
|
||||
Some(srv) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue