fix(discord-gateway): use const for sticker cache stats variable
This commit is contained in:
@@ -7,7 +7,8 @@ const TTL_MS = 7 * 24 * 60 * 60 * 1000; // 7 days
|
|||||||
const MAX_SIZE_BYTES = 100 * 1024 * 1024; // 100MB hardcoded
|
const MAX_SIZE_BYTES = 100 * 1024 * 1024; // 100MB hardcoded
|
||||||
|
|
||||||
let ready = false;
|
let ready = false;
|
||||||
const statsCache = { entryCount: 0, totalSizeBytes: 0 };
|
// eslint-disable-next-line prefer-const -- reassigned in initStickerCache
|
||||||
|
let statsCache = { entryCount: 0, totalSizeBytes: 0 };
|
||||||
|
|
||||||
export interface StickerCacheEntry {
|
export interface StickerCacheEntry {
|
||||||
base64: string;
|
base64: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user