mirror of
https://github.com/shiroyashik/sculptor.git
synced 2025-12-06 13:01:12 +03:00
Leaks ;3 fixed
This commit is contained in:
parent
c0c7245f03
commit
b435d9e420
2 changed files with 18 additions and 8 deletions
|
|
@ -68,6 +68,10 @@ impl Authenticated {
|
|||
pub fn contains_token(&self, token: &String) -> bool {
|
||||
self.user_data.contains_key(token)
|
||||
}
|
||||
pub fn remove(&self, uuid: &Uuid) {
|
||||
let token = self.uuid.remove(uuid).unwrap().1;
|
||||
self.user_data.remove(&token);
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue