aquatic_udp: glommio: run cleaning tasks in network.rs

This commit is contained in:
Joakim Frostegård 2021-10-23 12:41:07 +02:00
parent 1dcc48ee67
commit 0d39c93239
2 changed files with 43 additions and 12 deletions

View file

@ -17,7 +17,7 @@ impl ConnectionMap {
self.0.insert((connection_id, socket_addr), valid_until);
}
pub fn contains(&mut self, connection_id: ConnectionId, socket_addr: SocketAddr) -> bool {
pub fn contains(&self, connection_id: ConnectionId, socket_addr: SocketAddr) -> bool {
self.0.contains_key(&(connection_id, socket_addr))
}