Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed Nov 28, 2024
1 parent 160e8a6 commit 6a20230
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ee/tabby-webserver/src/rate_limit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ impl UserRateLimiter {
let rate_limiter = rate_limiters.cache_get_or_set_with(user_id.to_string(), || {
// Create a new rate limiter for this user.
ratelimit::Ratelimiter::builder(USER_REQUEST_LIMIT_PER_MINUTE, Duration::from_secs(60))
.initial_available(USER_REQUEST_LIMIT_PER_MINUTE)
.build()
.expect("Failed to create rate limiter")
});
Expand Down

0 comments on commit 6a20230

Please sign in to comment.