Update default rate limiter config
This commit is contained in:
parent
b5fb33e21e
commit
71d234e1e4
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue