diff --git a/waku/src/node/discovery.rs b/waku/src/node/discovery.rs index 715bcc7..f7b4f35 100644 --- a/waku/src/node/discovery.rs +++ b/waku/src/node/discovery.rs @@ -12,7 +12,7 @@ use crate::Result; /// The nameserver can optionally be specified to resolve the enrtree url. Otherwise uses the default system dns. pub fn waku_dns_discovery( url: &Url, - server: Option, + server: Option<&Host>, timeout: Option, ) -> Result> { let result = unsafe { diff --git a/waku/src/node/mod.rs b/waku/src/node/mod.rs index a0ecf26..11e9771 100644 --- a/waku/src/node/mod.rs +++ b/waku/src/node/mod.rs @@ -324,7 +324,7 @@ impl WakuNodeHandle { pub fn dns_discovery( &self, url: &Url, - nameserver: Option, + nameserver: Option<&Host>, timeout: Option, ) -> Result> { discovery::waku_dns_discovery(url, nameserver, timeout)