Skip to content

Commit 7a1b241

Browse files
authored
fix: remove dangling Promise after 5.x linting changes
1 parent 2e680bc commit 7a1b241

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/message-queues.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ export abstract class MessageQueue {
261261
this._requests.length + 1 >= this._options.maxMessages! ||
262262
this.bytes + size >= MAX_BATCH_BYTES
263263
) {
264-
this.flush();
264+
// No need to wait on this one; it clears the old batch out.
265+
this.flush().catch(() => {});
265266
}
266267

267268
// Just throw it in for another round of processing on the next batch.

0 commit comments

Comments
 (0)