fix compile errors

This commit is contained in:
XOR-op
2023-01-21 04:13:13 +08:00
committed by Benjamin Fry
parent 61884a1b2e
commit 3410e9e95a
13 changed files with 38 additions and 39 deletions

View File

@@ -25,7 +25,8 @@ use crate::error::*;
use crate::lookup::{self, Lookup, LookupEither, LookupFuture};
use crate::lookup_ip::{LookupIp, LookupIpFuture};
#[cfg(feature = "tokio-runtime")]
use crate::name_server::{NameServerPool, RuntimeProvider, TokioRuntimeProvider};
use crate::name_server::TokioRuntimeProvider;
use crate::name_server::{AbstractNameServerPool, RuntimeProvider};
use crate::Hosts;
@@ -200,7 +201,8 @@ impl<P: RuntimeProvider> AsyncResolver<P> {
options: ResolverOpts,
conn_provider: P,
) -> Result<Self, ResolveError> {
let pool = NameServerPool::from_config_with_provider(&config, &options, conn_provider);
let pool =
AbstractNameServerPool::from_config_with_provider(&config, &options, conn_provider);
let either;
let client = RetryDnsHandle::new(pool, options.attempts);
if options.validate {