Get the instance ID for a connection, if registered
(&self, peer: &SocketAddr)
| 367 | |
| 368 | /// Get the instance ID for a connection, if registered |
| 369 | pub async fn get(&self, peer: &SocketAddr) -> Option<(String, InstanceId)> { |
| 370 | let connections = self.connections.read().await; |
| 371 | connections.get(peer).cloned() |
| 372 | } |
| 373 | } |