From 4bf6fc4191824fc46917d5b1b6f596d74aeb9a61 Mon Sep 17 00:00:00 2001 From: ixhbinphoenix Date: Wed, 20 Mar 2024 20:33:28 +0100 Subject: [PATCH] fix: Increase rate limit burst to 5 --- backend/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main.rs b/backend/src/main.rs index 5e92e46..e3334f6 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -159,14 +159,14 @@ async fn main() -> io::Result<()> { let governor_config = GovernorConfigBuilder::default() .key_extractor(NginxIpKeyExctrator) .per_second(10) - .burst_size(2) + .burst_size(5) .use_headers() .finish() .unwrap(); #[cfg(not(feature = "proxy"))] let governor_config = GovernorConfigBuilder::default() .per_second(10) - .burst_size(2) + .burst_size(5) .use_headers() .finish() .unwrap();