Skip to content

Commit

Permalink
Clean up unused scheduledBatchTimerByKey entries
Browse files Browse the repository at this point in the history
Hat-tip to @kang-heewon
  • Loading branch information
bignimbus committed Jan 25, 2023
1 parent 408b7ba commit c943385
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/link/batch/batching.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ export class OperationBatcher {
clearTimeout(this.scheduledBatchTimerByKey.get(key));
this.scheduledBatchTimerByKey.set(key, setTimeout(() => {
this.consumeQueue(key);
this.scheduledBatchTimerByKey.delete(key);
}, this.batchInterval));
}
}

0 comments on commit c943385

Please sign in to comment.