Linting.
This commit is contained in:
parent
e09011d813
commit
b59d077b43
1 changed files with 3 additions and 2 deletions
|
@ -32,7 +32,8 @@ function getApiLimitPerSecond(): number {
|
||||||
if (!env.isTest()) {
|
if (!env.isTest()) {
|
||||||
const REDIS_OPTS = getRedisOptions()
|
const REDIS_OPTS = getRedisOptions()
|
||||||
let options
|
let options
|
||||||
if (REDIS_OPTS.redisProtocolUrl) { // fully qualified redis URL
|
if (REDIS_OPTS.redisProtocolUrl) {
|
||||||
|
// fully qualified redis URL
|
||||||
options = {
|
options = {
|
||||||
url: REDIS_OPTS.redisProtocolUrl,
|
url: REDIS_OPTS.redisProtocolUrl,
|
||||||
}
|
}
|
||||||
|
@ -47,7 +48,7 @@ if (!env.isTest()) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RateLimit.defaultOptions({
|
RateLimit.defaultOptions({
|
||||||
store: new Stores.Redis(options)
|
store: new Stores.Redis(options),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// rate limiting, allows for 2 requests per second
|
// rate limiting, allows for 2 requests per second
|
||||||
|
|
Loading…
Reference in a new issue