fix: Rate limiting across multiple servers via Redis not working (#8469)
This commit is contained in:
@@ -483,9 +483,9 @@ export const addRateLimit = (route, config) => {
|
|||||||
store: null,
|
store: null,
|
||||||
connected: false,
|
connected: false,
|
||||||
};
|
};
|
||||||
if (route.redisrUrl) {
|
if (route.redisUrl) {
|
||||||
const client = createClient({
|
const client = createClient({
|
||||||
url: route.redisrUrl,
|
url: route.redisUrl,
|
||||||
});
|
});
|
||||||
redisStore.connectionPromise = async () => {
|
redisStore.connectionPromise = async () => {
|
||||||
if (redisStore.connected) {
|
if (redisStore.connected) {
|
||||||
|
|||||||
Reference in New Issue
Block a user