Skip to content

Commit 6058d08

Browse files
committed
add rate limit redis prefix
1 parent f94e055 commit 6058d08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/server/src/utils/rateLimit.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export class RateLimiterManager {
5252
standardHeaders: true,
5353
legacyHeaders: false,
5454
store: new RedisStore({
55+
prefix: `rl:${id}`,
5556
// @ts-expect-error - Known issue: the `call` function is not present in @types/ioredis
5657
sendCommand: (...args: string[]) => this.redisClient.call(...args)
5758
}),

0 commit comments

Comments
 (0)