From: Jérôme Benoit Date: Fri, 16 Jun 2023 09:07:26 +0000 (+0200) Subject: refactor: queue code cleanups X-Git-Tag: v2.6.3~24 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=44b3657c414ad850ef46d6b7c13a48ab3130cb32;p=poolifier.git refactor: queue code cleanups Signed-off-by: Jérôme Benoit --- diff --git a/src/queue.ts b/src/queue.ts index 8b761c8f..7aad6d06 100644 --- a/src/queue.ts +++ b/src/queue.ts @@ -13,9 +13,9 @@ export class Queue { public constructor () { this.items = [] + this.offset = 0 /** The size of the queue. */ this.size = 0 - this.offset = 0 /** The maximum size of the queue. */ this.maxSize = 0 }