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