Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions iroh/src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Duration> {
self.msock.latency(endpoint_id)
}

/// Returns the DNS resolver used in this [`Endpoint`].
///
/// See [`Builder::dns_resolver`].
Expand Down
1 change: 1 addition & 0 deletions iroh/src/magicsock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Duration> {
self.endpoint_map.latency(endpoint_id)
}
Expand Down
1 change: 1 addition & 0 deletions iroh/src/magicsock/endpoint_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Duration> {
self.inner.lock().expect("poisoned").latency(endpoint_id)
}
Expand Down