Skip to content

Commit

Permalink
Change rate limiter rules
Browse files Browse the repository at this point in the history
  • Loading branch information
bubelov committed Oct 19, 2024
1 parent 5fe1169 commit e41d98d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ async fn main() -> Result<()> {
.await??;

let rate_limit_conf = GovernorConfigBuilder::default()
.seconds_per_request(1)
.burst_size(30)
.milliseconds_per_request(500)
.burst_size(50)
.key_extractor(get_key_extractor())
.finish()
.unwrap();
Expand Down

0 comments on commit e41d98d

Please sign in to comment.