api/memory-store: unref timeout so it doesn't hold up process

This commit is contained in:
jj 2024-11-02 11:32:35 +00:00
parent ab3af731e7
commit e2b4141fc7
No known key found for this signature in database

View file

@ -60,6 +60,7 @@ export default class MemoryStore extends Store {
() => this.#sweepNow(), () => this.#sweepNow(),
Math.max(MIN_THRESHOLD_MS, time - current_time) Math.max(MIN_THRESHOLD_MS, time - current_time)
); );
sweep.id.unref();
} }
} }