@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.js CHANGED
@@ -10347,9 +10347,13 @@ const _MutationRateLimiter = class _MutationRateLimiter2 {
10347
10347
  isStorming(muts) {
10348
10348
  const now = Date.now();
10349
10349
  if (this.inGlobalStorm) {
10350
+ this.mutTracker.muts += muts;
10350
10351
  if (now - this.mutTracker.ts > this.interval) {
10351
10352
  this.inGlobalStorm = false;
10352
- debugLog(`MutationRateLimiter, detected global storm over`);
10353
+ debugLog(
10354
+ `MutationRateLimiter, detected global storm over. Total mutations stormed: ${this.mutTracker.muts}`
10355
+ );
10356
+ this.reset();
10353
10357
  return false;
10354
10358
  }
10355
10359
  this.mutTracker.ts = now;
@@ -10362,7 +10366,6 @@ const _MutationRateLimiter = class _MutationRateLimiter2 {
10362
10366
  this.mutTracker.muts += muts;
10363
10367
  if (this.mutTracker.muts >= this.limit) {
10364
10368
  this.inGlobalStorm = true;
10365
- this.reset();
10366
10369
  debugLog(`MutationRateLimiter, detected global rolling storm`);
10367
10370
  return true;
10368
10371
  }