Update default rate limiter config

This commit is contained in:
Chris Eager 2023-03-02 10:20:26 -06:00 committed by Chris Eager
parent b5fb33e21e
commit 71d234e1e4
1 changed files with 1 additions and 7 deletions

View File

@ -56,9 +56,7 @@ public class RateLimiters extends BaseRateLimiters<RateLimiters.For> {
CHECK_ACCOUNT_EXISTENCE("checkAccountExistence", false, new RateLimiterConfig(1_000, 1_000 / 60.0)),
STORIES("stories", false, new RateLimiterConfig(10_000, 10_000 / (24.0 * 60.0))),
REGISTRATION("registration", false, new RateLimiterConfig(2, 2)),
REGISTRATION("registration", false, new RateLimiterConfig(6, 2)),
VERIFICATION_PUSH_CHALLENGE("verificationPushChallenge", false, new RateLimiterConfig(5, 2)),
@ -198,10 +196,6 @@ public class RateLimiters extends BaseRateLimiters<RateLimiters.For> {
return forDescriptor(For.CHECK_ACCOUNT_EXISTENCE);
}
public RateLimiter getStoriesLimiter() {
return forDescriptor(For.STORIES);
}
public RateLimiter getRegistrationLimiter() {
return forDescriptor(For.REGISTRATION);
}