@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.umd.cjs
CHANGED
|
@@ -10391,9 +10391,13 @@ const _MutationRateLimiter = class _MutationRateLimiter2 {
|
|
|
10391
10391
|
isStorming(muts) {
|
|
10392
10392
|
const now = Date.now();
|
|
10393
10393
|
if (this.inGlobalStorm) {
|
|
10394
|
+
this.mutTracker.muts += muts;
|
|
10394
10395
|
if (now - this.mutTracker.ts > this.interval) {
|
|
10395
10396
|
this.inGlobalStorm = false;
|
|
10396
|
-
debugLog(
|
|
10397
|
+
debugLog(
|
|
10398
|
+
`MutationRateLimiter, detected global storm over. Total mutations stormed: ${this.mutTracker.muts}`
|
|
10399
|
+
);
|
|
10400
|
+
this.reset();
|
|
10397
10401
|
return false;
|
|
10398
10402
|
}
|
|
10399
10403
|
this.mutTracker.ts = now;
|
|
@@ -10406,7 +10410,6 @@ const _MutationRateLimiter = class _MutationRateLimiter2 {
|
|
|
10406
10410
|
this.mutTracker.muts += muts;
|
|
10407
10411
|
if (this.mutTracker.muts >= this.limit) {
|
|
10408
10412
|
this.inGlobalStorm = true;
|
|
10409
|
-
this.reset();
|
|
10410
10413
|
debugLog(`MutationRateLimiter, detected global rolling storm`);
|
|
10411
10414
|
return true;
|
|
10412
10415
|
}
|