memorelay: increase LRU limits

This commit is contained in:
Alex Gleason 2023-12-28 12:15:24 -06:00
parent da6738a405
commit b3c7e22052
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 2 deletions

View File

@ -4,8 +4,8 @@ import { getFilterId, type GetFiltersOpts, getMicroFilters, isMicrofilter } from
const debug = Debug('ditto:memorelay'); const debug = Debug('ditto:memorelay');
const events = new LRUCache<string, Event>({ const events = new LRUCache<string, Event>({
max: 1000, max: 3000,
maxEntrySize: 1000, maxEntrySize: 5000,
sizeCalculation: (event) => JSON.stringify(event).length, sizeCalculation: (event) => JSON.stringify(event).length,
}); });