mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-07 10:14:35 +00:00
fix latency first route of public server (#1129)
This commit is contained in:
@@ -201,14 +201,17 @@ impl Peer {
|
||||
}
|
||||
|
||||
pub fn has_directly_connected_conn(&self) -> bool {
|
||||
self.conns.iter().any(|entry|!(entry.value()).is_hole_punched())
|
||||
self.conns
|
||||
.iter()
|
||||
.any(|entry| !(entry.value()).is_hole_punched())
|
||||
}
|
||||
|
||||
pub fn get_directly_connections(&self) -> DashSet<uuid::Uuid> {
|
||||
self.conns.iter()
|
||||
.filter(|entry| !(entry.value()).is_hole_punched())
|
||||
.map(|entry|(entry.value()).get_conn_id())
|
||||
.collect()
|
||||
self.conns
|
||||
.iter()
|
||||
.filter(|entry| !(entry.value()).is_hole_punched())
|
||||
.map(|entry| (entry.value()).get_conn_id())
|
||||
.collect()
|
||||
}
|
||||
|
||||
pub fn get_default_conn_id(&self) -> PeerConnId {
|
||||
|
||||
Reference in New Issue
Block a user