chore: rename {Abstract} back

This commit is contained in:
XOR-op
2023-05-19 14:05:08 +08:00
committed by Benjamin Fry
parent a38f9c01c9
commit b58a8585a6
9 changed files with 64 additions and 66 deletions

View File

@@ -26,7 +26,7 @@ use crate::lookup::{self, Lookup, LookupEither, LookupFuture};
use crate::lookup_ip::{LookupIp, LookupIpFuture};
#[cfg(feature = "tokio-runtime")]
use crate::name_server::TokioRuntimeProvider;
use crate::name_server::{AbstractNameServerPool, RuntimeProvider};
use crate::name_server::{NameServerPool, RuntimeProvider};
use crate::Hosts;
@@ -192,8 +192,7 @@ impl<P: RuntimeProvider> AsyncResolver<P> {
/// documentation for `AsyncResolver` for more information on how to use
/// the background future.
pub fn new_with_conn(config: ResolverConfig, options: ResolverOpts, conn_provider: P) -> Self {
let pool =
AbstractNameServerPool::from_config_with_provider(&config, &options, conn_provider);
let pool = ServerPool::from_config_with_provider(&config, &options, conn_provider);
let either;
let client = RetryDnsHandle::new(pool, options.attempts);
if options.validate {