Add is_hole_punched flag to PeerConn (#1001)

This commit is contained in:
liusen373
2025-06-18 12:14:57 +08:00
committed by GitHub
parent 327ccdcf38
commit 72673a9d52
8 changed files with 47 additions and 92 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ impl PeerMap {
});
}
fn get_peer_by_id(&self, peer_id: PeerId) -> Option<Arc<Peer>> {
pub fn get_peer_by_id(&self, peer_id: PeerId) -> Option<Arc<Peer>> {
self.peer_map.get(&peer_id).map(|v| v.clone())
}