mirror of
https://github.com/neon-mmd/websurfx.git
synced 2024-11-24 06:58:22 -05:00
Compare commits
1 Commits
a9349c284b
...
3989c88ff1
Author | SHA1 | Date | |
---|---|---|---|
|
3989c88ff1 |
@ -91,7 +91,7 @@ pub fn run(
|
|||||||
.wrap(cors)
|
.wrap(cors)
|
||||||
.wrap(Governor::new(
|
.wrap(Governor::new(
|
||||||
&GovernorConfigBuilder::default()
|
&GovernorConfigBuilder::default()
|
||||||
.seconds_per_request(config.rate_limiter.time_limit as u64)
|
.per_second(config.rate_limiter.time_limit as u64)
|
||||||
.burst_size(config.rate_limiter.number_of_requests as u32)
|
.burst_size(config.rate_limiter.number_of_requests as u32)
|
||||||
.finish()
|
.finish()
|
||||||
.unwrap(),
|
.unwrap(),
|
||||||
|
Loading…
Reference in New Issue
Block a user