From 6a2375394f0909c0b91316bd2711a393c36f4d2d Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Fri, 8 Mar 2024 00:47:15 +0100 Subject: [PATCH] made the feedback ratelimiter more generous --- server/feedback/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/feedback/src/main.rs b/server/feedback/src/main.rs index 4bd2c0bbf..98084f7cb 100644 --- a/server/feedback/src/main.rs +++ b/server/feedback/src/main.rs @@ -37,8 +37,8 @@ async fn main() -> std::io::Result<()> { let feedback_ratelimit = GovernorConfigBuilder::default() .key_extractor(GlobalKeyExtractor) - .per_second(SECONDS_PER_DAY / 100) // replenish new token every .. seconds - .burst_size(20) + .per_second(SECONDS_PER_DAY / 300) // replenish new token every .. seconds + .burst_size(50) .finish() .expect("Invalid configuration of the governor");