fix(example): upd after changes in DnsClient API
This commit is contained in:
parent
60d7cfb310
commit
de8333d164
1 changed files with 8 additions and 2 deletions
|
@ -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()
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue