maxpool 1.24.60 → 1.24.61
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/package.json +1 -1
- package/src/account-manager.js +5 -1
package/package.json
CHANGED
package/src/account-manager.js
CHANGED
|
@@ -1401,7 +1401,11 @@ export class AccountManager {
|
|
|
1401
1401
|
}
|
|
1402
1402
|
const now = Date.now();
|
|
1403
1403
|
if (now < this.queueState.rampUntil && now - this.queueState.lastAdmissionAt < 250) return false;
|
|
1404
|
-
|
|
1404
|
+
// Remove THIS ticket, not the head: with the head-skip above, the admitted ticket
|
|
1405
|
+
// may not be waiting[0]. shift() here dropped the stuck head's ticket and left the
|
|
1406
|
+
// admitted one queued (found 2026-10-31 re-reading the shipped change).
|
|
1407
|
+
const pos = this.queueState.waiting.findIndex(t => t.id === ticket.id);
|
|
1408
|
+
if (pos >= 0) this.queueState.waiting.splice(pos, 1);
|
|
1405
1409
|
this.queueState.bytes = Math.max(0, this.queueState.bytes - (ticket.bytes || 0));
|
|
1406
1410
|
this.queueState.lastAdmissionAt = now;
|
|
1407
1411
|
requestInfo.queueTicket = null;
|