Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private static class SlidingWindow {
private final java.util.Deque<Long> timestamps =
new java.util.concurrent.ConcurrentLinkedDeque<>();

boolean tryAcquire(int limit) {
synchronized boolean tryAcquire(int limit) {
long now = System.currentTimeMillis();
long cutoff = now - WINDOW_MS;

Expand Down
Loading