File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ pub(crate) struct LookupHosts {
2020}
2121
2222impl LookupHosts {
23+ #[ cfg( feature = "dns-resolver" ) ]
2324 pub ( crate ) fn validate ( mut self , original_hostname : & str , dm : DomainMismatch ) -> Result < Self > {
2425 let original_hostname_parts: Vec < _ > = original_hostname. split ( '.' ) . collect ( ) ;
2526 let original_domain_name = if original_hostname_parts. len ( ) >= 3 {
@@ -261,7 +262,10 @@ pub(crate) struct SrvResolver {}
261262
262263#[ cfg( not( feature = "dns-resolver" ) ) ]
263264impl SrvResolver {
264- pub ( crate ) async fn new ( _config : Option < ResolverConfig > ) -> Result < Self > {
265+ pub ( crate ) async fn new (
266+ _config : Option < ResolverConfig > ,
267+ _srv_service_name : Option < String > ,
268+ ) -> Result < Self > {
265269 Ok ( Self { } )
266270 }
267271
You can’t perform that action at this time.
0 commit comments