0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-11-24 06:58:22 -05:00

Compare commits

..

1 Commits

Author SHA1 Message Date
neon_arch
3989c88ff1
Merge 3d082bfa68 into c796ae8bb7 2024-10-05 03:48:15 +00:00

View File

@ -91,7 +91,7 @@ pub fn run(
.wrap(cors)
.wrap(Governor::new(
&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)
.finish()
.unwrap(),