Skip to content

Commit

Permalink
fix: Increase rate limit burst to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
ixhbinphoenix committed Mar 20, 2024
1 parent 8540871 commit 4bf6fc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,14 @@ async fn main() -> io::Result<()> {
let governor_config = GovernorConfigBuilder::default()
.key_extractor(NginxIpKeyExctrator)
.per_second(10)
.burst_size(2)
.burst_size(5)
.use_headers()
.finish()
.unwrap();
#[cfg(not(feature = "proxy"))]
let governor_config = GovernorConfigBuilder::default()
.per_second(10)
.burst_size(2)
.burst_size(5)
.use_headers()
.finish()
.unwrap();
Expand Down

0 comments on commit 4bf6fc4

Please sign in to comment.