Skip to content

Commit

Permalink
Add missing access modifiers to SimpleRateLimitPolicy (#28389)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjvanrossum authored Sep 29, 2023
1 parent 4204ba3 commit 0a6b29d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -645,11 +645,11 @@ void onBeforeRequest(String developerToken, String customerId, Message request)
public static class SimpleRateLimitPolicy implements RateLimitPolicy {
private final RateLimiter rateLimiter;

SimpleRateLimitPolicy(double permitsPerSecond) {
public SimpleRateLimitPolicy(double permitsPerSecond) {
rateLimiter = RateLimiter.create(permitsPerSecond);
}

SimpleRateLimitPolicy(double permitsPerSecond, long warmupPeriod, TimeUnit unit) {
public SimpleRateLimitPolicy(double permitsPerSecond, long warmupPeriod, TimeUnit unit) {
rateLimiter = RateLimiter.create(permitsPerSecond, warmupPeriod, unit);
}

Expand Down

0 comments on commit 0a6b29d

Please sign in to comment.