diff --git a/iroh/src/endpoint.rs b/iroh/src/endpoint.rs index c6110c6f4d..883ae66977 100644 --- a/iroh/src/endpoint.rs +++ b/iroh/src/endpoint.rs @@ -1000,13 +1000,6 @@ impl Endpoint { self.msock.conn_type(endpoint_id) } - /// Returns the currently lowest latency for this endpoint. - /// - /// Will return `None` if we do not have any address information for the given `endpoint_id`. - pub fn latency(&self, endpoint_id: EndpointId) -> Option { - self.msock.latency(endpoint_id) - } - /// Returns the DNS resolver used in this [`Endpoint`]. /// /// See [`Builder::dns_resolver`]. diff --git a/iroh/src/magicsock.rs b/iroh/src/magicsock.rs index a05c2a1a96..14bb427ceb 100644 --- a/iroh/src/magicsock.rs +++ b/iroh/src/magicsock.rs @@ -387,6 +387,7 @@ impl MagicSock { self.endpoint_map.conn_type(endpoint_id) } + #[allow(dead_code)] pub(crate) fn latency(&self, endpoint_id: EndpointId) -> Option { self.endpoint_map.latency(endpoint_id) } diff --git a/iroh/src/magicsock/endpoint_map.rs b/iroh/src/magicsock/endpoint_map.rs index e23da33232..16af338762 100644 --- a/iroh/src/magicsock/endpoint_map.rs +++ b/iroh/src/magicsock/endpoint_map.rs @@ -322,6 +322,7 @@ impl EndpointMap { self.inner.lock().expect("poisoned").conn_type(endpoint_id) } + #[allow(dead_code)] pub(super) fn latency(&self, endpoint_id: EndpointId) -> Option { self.inner.lock().expect("poisoned").latency(endpoint_id) }