Merge pull request #4326 from TKone7/patch-1

Fix memory cache cleanup logic
This commit is contained in:
softsimon authored and GitHub committed 2023-10-30 20:51:42 +08:00
commit 7145856d98
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -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()));
}
}
+3
View File
@@ -0,0 +1,3 @@
I hereby accept the terms of the Contributor License Agreement in the CONTRIBUTING.md file of the mempool/mempool git repository as of October 23, 2023.
Signed: TKone7