revert uncommenting code
This commit is contained in:
parent
19ec76c49d
commit
9ef6fdaec9
|
@ -30,7 +30,7 @@ function getApiLimitPerSecond(): number {
|
||||||
return parseInt(env.API_REQ_LIMIT_PER_SEC)
|
return parseInt(env.API_REQ_LIMIT_PER_SEC)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*if (!env.isTest()) {
|
if (!env.isTest()) {
|
||||||
const REDIS_OPTS = getRedisOptions()
|
const REDIS_OPTS = getRedisOptions()
|
||||||
let options
|
let options
|
||||||
if (REDIS_OPTS.redisProtocolUrl) {
|
if (REDIS_OPTS.redisProtocolUrl) {
|
||||||
|
@ -51,7 +51,7 @@ function getApiLimitPerSecond(): number {
|
||||||
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
|
||||||
const limiter = RateLimit.middleware({
|
const limiter = RateLimit.middleware({
|
||||||
interval: { sec: 1 },
|
interval: { sec: 1 },
|
||||||
|
|
Loading…
Reference in New Issue