Node.js based forum software built for the modern web
fix: clearTimeout if item is evicted from cache
Barış Soner Uşaklı5f696176b444
diff --git a/src/activitypub/index.js b/src/activitypub/index.jsindex 4067405080..926f8d0754 100644--- a/src/activitypub/index.js+++ b/src/activitypub/index.js@@ -346,7 +346,16 @@ ActivityPub.get = async (type, id, uri, options) => {}};-ActivityPub.retryQueue = lru({ name: 'activitypub-retry-queue', max: 4000, ttl: 1000 * 60 * 60 * 24 * 60 });+ActivityPub.retryQueue = lru({+ name: 'activitypub-retry-queue',+ max: 4000,+ ttl: 1000 * 60 * 60 * 24 * 60,+ dispose: (value) => {+ if (value) {+ clearTimeout(value);+ }+ },+});// handle clearing retry queue from another member of the clusterpubsub.on(`activitypub-retry-queue:lruCache:del`, (keys) => {