From 440f6c6607e644516a2220735f769bd96a649eff Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Thu, 2 Feb 2023 11:30:24 -0500 Subject: [PATCH] dont commit rate limit --- src/api/mod.rs | 2 +- src/public/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/mod.rs b/src/api/mod.rs index 925aa4a..9efcefc 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -16,7 +16,7 @@ pub use auth::RegistrationRequet; pub fn router() -> Router { let governor_conf = Box::new( GovernorConfigBuilder::default() - .burst_size(1000) + .burst_size(10) .per_second(1) .key_extractor(SmartIpKeyExtractor) .finish() diff --git a/src/public/mod.rs b/src/public/mod.rs index 7e5b382..eb846fb 100644 --- a/src/public/mod.rs +++ b/src/public/mod.rs @@ -24,7 +24,7 @@ pub mod pages; pub fn router() -> Router { let governor_conf = Box::new( GovernorConfigBuilder::default() - .burst_size(20000) + .burst_size(20) .per_second(1) .key_extractor(SmartIpKeyExtractor) .finish()