@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.
@@ -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(`MutationRateLimiter, detected global storm over`);
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
  }