diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2023-02-02 11:30:24 -0500 |
---|---|---|
committer | Tyler Murphy <tylermurphy534@gmail.com> | 2023-02-02 11:30:24 -0500 |
commit | 440f6c6607e644516a2220735f769bd96a649eff (patch) | |
tree | 218564096a4c4f441b127c7ec25bcb01982a84db | |
parent | loading by offset on profile (diff) | |
download | xssbook-440f6c6607e644516a2220735f769bd96a649eff.tar.gz xssbook-440f6c6607e644516a2220735f769bd96a649eff.tar.bz2 xssbook-440f6c6607e644516a2220735f769bd96a649eff.zip |
dont commit rate limit
-rw-r--r-- | src/api/mod.rs | 2 | ||||
-rw-r--r-- | 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() |