Skip to content

Commit

Permalink
set rate limit to 60req/min
Browse files Browse the repository at this point in the history
  • Loading branch information
cankurttekin committed Nov 15, 2024
1 parent d70b75e commit 5a60ccf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
public class RateLimitingFilter extends OncePerRequestFilter {

private final Bucket bucket = Bucket.builder()
.addLimit(Bandwidth.classic(10, Refill.greedy(10, Duration.ofMinutes(1)))) // 10 requests per minute
.addLimit(Bandwidth.classic(60, Refill.greedy(60, Duration.ofMinutes(1)))) // 10 requests per minute
.build();


Expand Down

0 comments on commit 5a60ccf

Please sign in to comment.