fix websockets

This commit is contained in:
John Smith
2022-01-05 16:58:18 -05:00
parent b66aca0ce0
commit ea2300c32b
5 changed files with 24 additions and 23 deletions
+4 -4
View File
@@ -34,7 +34,7 @@ impl ConnectionTable {
assert!(res.is_none());
let conns = self.conns_by_remote.entry(descriptor.remote).or_default();
warn!("add_connection: {:?}", conn);
//warn!("add_connection: {:?}", conn);
conns.push(conn);
Ok(())
@@ -42,7 +42,7 @@ impl ConnectionTable {
pub fn get_connection(&self, descriptor: ConnectionDescriptor) -> Option<NetworkConnection> {
let out = self.conn_by_descriptor.get(&descriptor).cloned();
warn!("get_connection: {:?} -> {:?}", descriptor, out);
//warn!("get_connection: {:?} -> {:?}", descriptor, out);
out
}
pub fn get_last_connection_by_remote(&self, remote: PeerAddress) -> Option<NetworkConnection> {
@@ -50,7 +50,7 @@ impl ConnectionTable {
.conns_by_remote
.get(&remote)
.map(|v| v[(v.len() - 1)].clone());
warn!("get_last_connection_by_remote: {:?} -> {:?}", remote, out);
//warn!("get_last_connection_by_remote: {:?} -> {:?}", remote, out);
out
}
@@ -62,7 +62,7 @@ impl ConnectionTable {
&mut self,
descriptor: ConnectionDescriptor,
) -> Result<NetworkConnection, String> {
warn!("remove_connection: {:?}", descriptor);
//warn!("remove_connection: {:?}", descriptor);
let out = self
.conn_by_descriptor
.remove(&descriptor)