modernize async srv lookup

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-11-30 15:13:35 +00:00
parent 9a9c071e82
commit ed8c21ac9a
2 changed files with 16 additions and 32 deletions

View file

@ -7,7 +7,6 @@ mod tests;
use std::{fmt::Write, sync::Arc};
use conduit::{Result, Server};
use hickory_resolver::TokioAsyncResolver;
use self::{cache::Cache, dns::Resolver};
use crate::{client, globals, Dep};
@ -71,9 +70,3 @@ impl crate::Service for Service {
fn name(&self) -> &str { crate::service::make_name(std::module_path!()) }
}
impl Service {
#[inline]
#[must_use]
pub fn raw(&self) -> Arc<TokioAsyncResolver> { self.resolver.resolver.clone() }
}