1
0
Fork 0
mirror of synced 2024-06-29 19:41:03 +12:00

revert uncommenting code

This commit is contained in:
Maurits Lourens 2022-03-16 13:43:09 +01:00
parent 0f5d4733d6
commit 06a0e9f76a

View file

@ -30,7 +30,7 @@ function getApiLimitPerSecond(): number {
return parseInt(env.API_REQ_LIMIT_PER_SEC)
}
/*if (!env.isTest()) {
if (!env.isTest()) {
const REDIS_OPTS = getRedisOptions()
let options
if (REDIS_OPTS.redisProtocolUrl) {
@ -51,7 +51,7 @@ function getApiLimitPerSecond(): number {
RateLimit.defaultOptions({
store: new Stores.Redis(options),
})
}*/
}
// rate limiting, allows for 2 requests per second
const limiter = RateLimit.middleware({
interval: { sec: 1 },