dont commit rate limit
This commit is contained in:
parent
18a27f62be
commit
440f6c6607
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ pub use auth::RegistrationRequet;
|
||||||
pub fn router() -> Router {
|
pub fn router() -> Router {
|
||||||
let governor_conf = Box::new(
|
let governor_conf = Box::new(
|
||||||
GovernorConfigBuilder::default()
|
GovernorConfigBuilder::default()
|
||||||
.burst_size(1000)
|
.burst_size(10)
|
||||||
.per_second(1)
|
.per_second(1)
|
||||||
.key_extractor(SmartIpKeyExtractor)
|
.key_extractor(SmartIpKeyExtractor)
|
||||||
.finish()
|
.finish()
|
||||||
|
|
|
@ -24,7 +24,7 @@ pub mod pages;
|
||||||
pub fn router() -> Router {
|
pub fn router() -> Router {
|
||||||
let governor_conf = Box::new(
|
let governor_conf = Box::new(
|
||||||
GovernorConfigBuilder::default()
|
GovernorConfigBuilder::default()
|
||||||
.burst_size(20000)
|
.burst_size(20)
|
||||||
.per_second(1)
|
.per_second(1)
|
||||||
.key_extractor(SmartIpKeyExtractor)
|
.key_extractor(SmartIpKeyExtractor)
|
||||||
.finish()
|
.finish()
|
||||||
|
|
Loading…
Reference in a new issue