mirror of
https://github.com/mempool/mempool.git
synced 2024-11-19 01:41:01 +01:00
Fix cleanup logic
Keep only cache entries with an expiry in the future.
This commit is contained in:
parent
413941f5ac
commit
59a92d0363
@ -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…
Reference in New Issue
Block a user