Skip to content

Commit 3299bec

Browse files
committed
Updated RateLimiter comments.
1 parent b5c0680 commit 3299bec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

RateLimiter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
import java.util.LinkedList;
88

99
/*
10-
* RATE LIMITER - *SLIDING WINDOW ALGORITHM*
10+
* RATE LIMITER - SLIDING WINDOW PER-USER ALGORITHM
1111
*/
1212
class RateLimiter {
13+
// user ID : queue of request DTs (phased out of window as-you-go)
1314
private HashMap<String, LinkedList<LocalDateTime>> dtQueue;
1415
public final int MAX_REQS_PER_MINUTE;
1516
// FOR TESTING ONLY (otherwise null)

0 commit comments

Comments
 (0)