fix(example): upd after changes in DnsClient API

This commit is contained in:
DarkCat09 2024-08-15 17:54:24 +04:00
parent 60d7cfb310
commit de8333d164
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3

View file

@ -4,7 +4,13 @@ use tokio_gemini::dns::DnsClient;
async fn main() {
let mut client = DnsClient::init(("1.1.1.1", 53)).await.unwrap();
println!(
"{:?}",
client.query_tlsa("torproject.org", 443).await.unwrap()
"{}",
client
.query_tlsa("torproject.org", 443)
.await
.unwrap()
.next()
.unwrap()
.hex()
);
}