diff --git a/package.json b/package.json index f30298b..4147aed 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "dependencies": { "@keyvhq/compress": "~2.0.3", "@keyvhq/core": "~2.1.0", - "@keyvhq/multi": "~2.0.3", + "@keyvhq/multi": "~2.1.0", "@keyvhq/redis": "~2.1.0", "@microlink/mql": "~0.11.2", "@microlink/ping-url": "~1.4.9", @@ -188,11 +188,11 @@ "private": true, "license": "MIT", "ava": { - "timeout": "1m", "files": [ "test/**/*.js", "!test/helpers.js" - ] + ], + "timeout": "1m" }, "commitlint": { "extends": [ diff --git a/src/util/rate-limiter.js b/src/util/rate-limiter.js index c94ccee..d27201d 100644 --- a/src/util/rate-limiter.js +++ b/src/util/rate-limiter.js @@ -8,9 +8,9 @@ const db = require('./redis') module.exports = db ? new RateLimiter({ - db, - namespace: 'rate', - duration: RATE_LIMIT_WINDOW, - max: RATE_LIMIT - }) + db, + namespace: 'rate', + duration: RATE_LIMIT_WINDOW, + max: RATE_LIMIT + }) : undefined diff --git a/src/util/redis.js b/src/util/redis.js index a76d3a3..3237179 100644 --- a/src/util/redis.js +++ b/src/util/redis.js @@ -6,8 +6,8 @@ const { REDIS_URI } = require('../constant') module.exports = REDIS_URI ? new Redis(REDIS_URI, { - lazyConnect: true, - enableAutoPipelining: true, - maxRetriesPerRequest: 2 - }) + lazyConnect: true, + enableAutoPipelining: true, + maxRetriesPerRequest: 2 + }) : undefined