From df0c3a555fc719941bb1e0f3b863db5d71428222 Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Sat, 6 Apr 2024 11:35:18 -0700 Subject: [PATCH] Fix `DiskCache::remove_expired_entries` --- src/stores/disk.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/disk.rs b/src/stores/disk.rs index 33a85e7..5683faa 100644 --- a/src/stores/disk.rs +++ b/src/stores/disk.rs @@ -132,7 +132,7 @@ where if now .duration_since(cached.created_at) .unwrap_or(Duration::from_secs(0)) - < Duration::from_secs(lifetime_seconds) + >= Duration::from_secs(lifetime_seconds) { let _ = self.connection.remove(key); }