We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent deb467c commit d30d844Copy full SHA for d30d844
lib/api/apiUtils/rateLimit/tokenBucket.js
@@ -29,8 +29,8 @@ class WorkerTokenBucket {
29
this.log = log;
30
31
// Token buffer configuration
32
- this.bufferSize = config.tokenBucketBufferSize || 50; // Max tokens to hold
33
- this.refillThreshold = config.tokenBucketRefillThreshold || 20; // Trigger refill when below this
+ this.bufferSize = config.rateLimiting?.tokenBucketBufferSize || 50; // Max tokens to hold
+ this.refillThreshold = config.rateLimiting?.tokenBucketRefillThreshold || 20; // Trigger refill when below this
34
this.tokens = this.bufferSize; // Start with full buffer for fail-open at startup
35
36
// Refill state
0 commit comments