Skip to content

Commit a68c32e

Browse files
committed
initialize refillCount
1 parent 1ef964d commit a68c32e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/api/apiUtils/rateLimit/tokenBucket.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class WorkerTokenBucket {
3535
this.tokens = this.bufferSize; // Start with full buffer for fail-open at startup
3636
this.interval = calculateInterval(this.limitConfig.limit, config.rateLimiting.nodes);
3737
this.lastRefillTime = Date.now();
38+
this.refillCount = 0;
3839
}
3940

4041
hasCapacity() {

0 commit comments

Comments
 (0)