mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
Fix cleanup logic
Keep only cache entries with an expiry in the future.
This commit is contained in:
parent
413941f5ac
commit
59a92d0363
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ class MemoryCache {
|
|||
}
|
||||
|
||||
private cleanup() {
|
||||
this.cache = this.cache.filter((cache) => cache.expires < (new Date()));
|
||||
this.cache = this.cache.filter((cache) => cache.expires > (new Date()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue