fix: old redis

This commit is contained in:
cha0s 2022-03-01 14:26:33 -06:00
parent e69e162ec6
commit 0a8c66ad7d

View File

@ -2,7 +2,11 @@ import {createClient} from 'redis';
import {RateLimiterRedis} from 'rate-limiter-flexible';
export default async (flecks, options) => {
const storeClient = createClient();
const {
host,
port,
} = flecks.get('@flecks/redis/server');
const storeClient = createClient({host, port});
// @todo node-redis@4
// await storeClient.connect();
return new RateLimiterRedis({