@glimt/record 0.0.67 → 0.0.69
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/record.cjs +5 -2
- package/dist/record.cjs.map +1 -1
- package/dist/record.js +5 -2
- package/dist/record.js.map +1 -1
- package/dist/record.umd.cjs +5 -2
- package/dist/record.umd.cjs.map +2 -2
- package/dist/record.umd.min.cjs +1 -1
- package/dist/record.umd.min.cjs.map +2 -2
- package/package.json +1 -1
package/dist/record.cjs
CHANGED
|
@@ -10349,9 +10349,13 @@ const _MutationRateLimiter = class _MutationRateLimiter2 {
|
|
|
10349
10349
|
isStorming(muts) {
|
|
10350
10350
|
const now = Date.now();
|
|
10351
10351
|
if (this.inGlobalStorm) {
|
|
10352
|
+
this.mutTracker.muts += muts;
|
|
10352
10353
|
if (now - this.mutTracker.ts > this.interval) {
|
|
10353
10354
|
this.inGlobalStorm = false;
|
|
10354
|
-
debugLog(
|
|
10355
|
+
debugLog(
|
|
10356
|
+
`MutationRateLimiter, detected global storm over. Total mutations stormed: ${this.mutTracker.muts}`
|
|
10357
|
+
);
|
|
10358
|
+
this.reset();
|
|
10355
10359
|
return false;
|
|
10356
10360
|
}
|
|
10357
10361
|
this.mutTracker.ts = now;
|
|
@@ -10364,7 +10368,6 @@ const _MutationRateLimiter = class _MutationRateLimiter2 {
|
|
|
10364
10368
|
this.mutTracker.muts += muts;
|
|
10365
10369
|
if (this.mutTracker.muts >= this.limit) {
|
|
10366
10370
|
this.inGlobalStorm = true;
|
|
10367
|
-
this.reset();
|
|
10368
10371
|
debugLog(`MutationRateLimiter, detected global rolling storm`);
|
|
10369
10372
|
return true;
|
|
10370
10373
|
}
|