This commit is contained in:
John Smith
2022-08-05 20:34:00 -04:00
parent ef096eb310
commit 0e047a0120
4 changed files with 101 additions and 8 deletions

View File

@@ -165,7 +165,9 @@ impl BucketEntryInner {
pub fn set_last_connection(&mut self, last_connection: ConnectionDescriptor, timestamp: u64) {
self.last_connection = Some((last_connection, timestamp));
}
pub fn clear_last_connection(&mut self) {
self.last_connection = None;
}
pub fn last_connection(&self) -> Option<(ConnectionDescriptor, u64)> {
self.last_connection
}