cleanup
This commit is contained in:
@@ -96,7 +96,6 @@ class RateLimitedQueue {
|
||||
|
||||
this.tasks.push(queuedTask);
|
||||
|
||||
// Kick the processor soon.
|
||||
setTimeout(() => {
|
||||
this.processQueue();
|
||||
}, 100);
|
||||
@@ -170,7 +169,7 @@ class RateLimitedQueue {
|
||||
.filter((t) => t.status === "queued")
|
||||
.sort((a, b) => a.addedAt - b.addedAt)[0];
|
||||
|
||||
if (!nextTask) break; // No more work
|
||||
if (!nextTask) break;
|
||||
|
||||
nextTask.status = "processing";
|
||||
nextTask.startedAt = Date.now();
|
||||
|
||||
Reference in New Issue
Block a user