fix: Rate limiting across multiple servers via Redis not working (#8469)

This commit is contained in:
Daniel
2023-03-11 03:43:37 +11:00
committed by GitHub
parent c4ce59cbd1
commit d9e347d741

View File

@@ -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) {