Skip to content

Commit 00cbfc9

Browse files
committed
updated comments
1 parent 8c94c74 commit 00cbfc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rateLimiters/slidingWindowLog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class SlidingWindowLog implements RateLimiter {
3535
if (windowSize <= 0 || capacity <= 0)
3636
throw SyntaxError('SlidingWindowLog window size and capacity must be positive');
3737

38-
// TODO: Define lua script for server side computation
38+
// TODO: Define lua script for server side computation using either sorted sets or lists
3939
// while x.timestamp + window_size < timestamp lpop
4040
// //https://stackoverflow.com/questions/35677682/filtering-deleting-items-from-a-redis-set
4141
// this.client.defineCommand('popWindow', {

0 commit comments

Comments
 (0)