diff --git a/src/srv.rs b/src/srv.rs index 66ae74e89..d62aa7070 100644 --- a/src/srv.rs +++ b/src/srv.rs @@ -20,6 +20,7 @@ pub(crate) struct LookupHosts { } impl LookupHosts { + #[cfg(feature = "dns-resolver")] pub(crate) fn validate(mut self, original_hostname: &str, dm: DomainMismatch) -> Result { let original_hostname_parts: Vec<_> = original_hostname.split('.').collect(); let original_domain_name = if original_hostname_parts.len() >= 3 { @@ -261,7 +262,10 @@ pub(crate) struct SrvResolver {} #[cfg(not(feature = "dns-resolver"))] impl SrvResolver { - pub(crate) async fn new(_config: Option) -> Result { + pub(crate) async fn new( + _config: Option, + _srv_service_name: Option, + ) -> Result { Ok(Self {}) }