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.js
CHANGED
|
@@ -1315,6 +1315,8 @@ var TokenBucketRateLimiter = class {
|
|
|
1315
1315
|
if (this.currentBackoff > 0) {
|
|
1316
1316
|
this.logger.debug(`Applying backoff: ${this.currentBackoff}ms`);
|
|
1317
1317
|
await sleep(this.currentBackoff);
|
|
1318
|
+
this.lastRefill = Date.now();
|
|
1319
|
+
this.currentBackoff = 0;
|
|
1318
1320
|
}
|
|
1319
1321
|
while (this.tokens <= 0) {
|
|
1320
1322
|
if (Date.now() - startTime > timeoutMs) {
|