@rotorsoft/act 1.31.24 → 1.31.25

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.js CHANGED
@@ -2954,7 +2954,8 @@ var DrainController = class {
2954
2954
  for (const lease of acked) this._defer.delete(lease.stream);
2955
2955
  for (const lease of blocked) this._defer.delete(lease.stream);
2956
2956
  for (const h of handled) {
2957
- const next = h.defer ?? (h.block ? void 0 : h.next_attempt_at);
2957
+ const retry_at = h.error && !h.block ? h.next_attempt_at ?? Date.now() + leaseMillis : void 0;
2958
+ const next = h.defer ?? retry_at;
2958
2959
  if (next !== void 0) this._defer.set(h.lease.stream, next);
2959
2960
  }
2960
2961
  if (this._defer.size > 0) this._defer.schedule();