Merge pull request #183 from Permissionless-Software-Foundation/ct-unstable

fix(rate limits): Decreasing ANON rate limits from 20 to 10 RPM
This commit is contained in:
Chris Troutner
2022-04-11 17:03:13 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ const config = {
// Rate Limits
anonRateLimit: process.env.ANON_RATE_LIMIT
? Number(process.env.ANON_RATE_LIMIT)
: 500,
: 1000,
whitelistRateLimit: process.env.WHITELIST_RATE_LIMIT
? Number(process.env.WHITELIST_RATE_LIMIT)
: 10,
+1 -1
View File
@@ -326,7 +326,7 @@ describe('#rate-routelimit', () => {
assert.property(val, 'error')
assert.include(
val.error,
'Too many requests. Your limits are currently 20 requests per minute.'
'Too many requests. Your limits are currently 10 requests per minute.'
)
assert.equal(res.locals.rateLimitTriggered, true, 'Rate limits triggered')