Skip to content

Commit

Permalink
build(deps): bump @keyvhq/multi from 2.0.3 to 2.1.0 (#282)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kiko Beats <[email protected]>
  • Loading branch information
dependabot[bot] and Kikobeats authored Oct 2, 2023
1 parent 66bba8c commit c1d04ea
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -188,11 +188,11 @@
"private": true,
"license": "MIT",
"ava": {
"timeout": "1m",
"files": [
"test/**/*.js",
"!test/helpers.js"
]
],
"timeout": "1m"
},
"commitlint": {
"extends": [
Expand Down
10 changes: 5 additions & 5 deletions src/util/rate-limiter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions src/util/redis.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c1d04ea

Please sign in to comment.