first pass, make RData optional in Record

This commit is contained in:
Benjamin Fry
2021-12-12 10:02:12 -08:00
committed by Dirkjan Ochtman
parent 0ac5d416a1
commit 61da37009e
7 changed files with 81 additions and 47 deletions

View File

@@ -431,7 +431,7 @@ impl<C: DnsHandle<Error = ResolveError>, P: ConnectionProvider<Conn = C>> AsyncR
self.client_cache.clone(),
DnsRequestOptions::default(),
hosts,
finally_ip_addr.map(Record::into_data),
finally_ip_addr.and_then(Record::into_data),
)
.await
}