Hey is a decentralized and permissionless social media app built with Lens Protocol 🌿

refactor: clean up global variable declaration for webhook rate limiting in Discord worker

yoginth.com 94acf83a 3ff1dbc3

verified
-2
-2
apps/api/src/workers/discord/rateLimit.ts
··· 2 2 3 3 export const DELAYED_QUEUE_KEY = "hey:discord:webhooks:delayed" as const; 4 4 5 - // Per-process, per-webhook (URL) next-available timestamp (ms) 6 5 declare global { 7 - // eslint-disable-next-line no-var 8 6 var __heyWebhookNextAt: Map<string, number> | undefined; 9 7 } 10 8