refactor(archived): change to match
This commit is contained in:
parent
9e45783547
commit
e6076e6beb
|
@ -138,14 +138,13 @@ impl Archive {
|
||||||
|
|
||||||
let entry = self.cache_table.get_mut(key);
|
let entry = self.cache_table.get_mut(key);
|
||||||
|
|
||||||
if entry.is_some() {
|
match entry {
|
||||||
let mut entry = entry.unwrap();
|
Some(entry) => {
|
||||||
|
entry.expiration_time = now + self.entry_lifetime;
|
||||||
|
|
||||||
entry.expiration_time = now + self.entry_lifetime;
|
Some(())
|
||||||
|
}
|
||||||
return Some(());
|
None => None
|
||||||
} else {
|
|
||||||
return None;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue