Fix logic bug
This commit is contained in:
parent
4985c497df
commit
28296a0f6e
@ -44,7 +44,7 @@ where
|
||||
|
||||
pub fn clear(&mut self) {
|
||||
let now = Instant::now();
|
||||
self.cache.retain(|_, v| !Self::is_valid(now, v));
|
||||
self.cache.retain(|_, v| Self::is_valid(now, v))
|
||||
}
|
||||
|
||||
fn is_valid(when: Instant, entry: &CacheEntry<V>) -> bool {
|
||||
|
Loading…
Reference in New Issue
Block a user