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 {
20
20
}
21
21
22
22
impl LookupHosts {
23
+ #[ cfg( feature = "dns-resolver" ) ]
23
24
pub ( crate ) fn validate ( mut self , original_hostname : & str , dm : DomainMismatch ) -> Result < Self > {
24
25
let original_hostname_parts: Vec < _ > = original_hostname. split ( '.' ) . collect ( ) ;
25
26
let original_domain_name = if original_hostname_parts. len ( ) >= 3 {
@@ -261,7 +262,10 @@ pub(crate) struct SrvResolver {}
261
262
262
263
#[ cfg( not( feature = "dns-resolver" ) ) ]
263
264
impl 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 > {
265
269
Ok ( Self { } )
266
270
}
267
271
You can’t perform that action at this time.
0 commit comments