Skip to content

Commit

Permalink
fix: Rate limiting across multiple servers via Redis not working (par…
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy committed Mar 10, 2023
1 parent c4ce59c commit d9e347d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/middlewares.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,9 +483,9 @@ export const addRateLimit = (route, config) => {
store: null,
connected: false,
};
if (route.redisrUrl) {
if (route.redisUrl) {
const client = createClient({
url: route.redisrUrl,
url: route.redisUrl,
});
redisStore.connectionPromise = async () => {
if (redisStore.connected) {
Expand Down

0 comments on commit d9e347d

Please sign in to comment.