modernize async srv lookup
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
9a9c071e82
commit
ed8c21ac9a
2 changed files with 16 additions and 32 deletions
|
@ -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() }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue