fix: old redis
This commit is contained in:
parent
e69e162ec6
commit
0a8c66ad7d
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue
Block a user