ton-provider-system 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1318,6 +1318,8 @@ var TokenBucketRateLimiter = class {
|
|
|
1318
1318
|
if (this.currentBackoff > 0) {
|
|
1319
1319
|
this.logger.debug(`Applying backoff: ${this.currentBackoff}ms`);
|
|
1320
1320
|
await sleep(this.currentBackoff);
|
|
1321
|
+
this.lastRefill = Date.now();
|
|
1322
|
+
this.currentBackoff = 0;
|
|
1321
1323
|
}
|
|
1322
1324
|
while (this.tokens <= 0) {
|
|
1323
1325
|
if (Date.now() - startTime > timeoutMs) {
|