Replace getaddrinfo resolver with trust-dns-resolver

This commit is contained in:
Sean McArthur
2018-12-17 13:28:15 -08:00
parent b259d7c5f3
commit 44837c1b69
6 changed files with 98 additions and 22 deletions

View File

@@ -281,13 +281,6 @@ impl ClientBuilder {
self
}
/// Set the number of threads to use for DNS
///
/// Default is 4
pub fn dns_threads(self, threads: usize) -> ClientBuilder {
self.with_inner(|inner| inner.dns_threads(threads))
}
fn with_inner<F>(mut self, func: F) -> ClientBuilder
where
F: FnOnce(async_impl::ClientBuilder) -> async_impl::ClientBuilder,