From: Jérôme Benoit Date: Mon, 18 Apr 2022 08:21:03 +0000 (+0200) Subject: AbstractWorker: Reorder attributes X-Git-Tag: v2.2.1~81 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=dc5d0cb3855a09adaafc0af99301b485a30eb77e;p=poolifier.git AbstractWorker: Reorder attributes Signed-off-by: Jérôme Benoit --- diff --git a/src/worker/abstract-worker.ts b/src/worker/abstract-worker.ts index 3a8414d8..fbb8f839 100644 --- a/src/worker/abstract-worker.ts +++ b/src/worker/abstract-worker.ts @@ -21,10 +21,6 @@ export abstract class AbstractWorker< Data = unknown, Response = unknown > extends AsyncResource { - /** - * Options for the worker. - */ - public readonly opts: WorkerOptions /** * Timestamp of the last task processed by this worker. */ @@ -33,6 +29,10 @@ export abstract class AbstractWorker< * Handler Id of the `aliveInterval` worker alive check. */ protected readonly aliveInterval?: NodeJS.Timeout + /** + * Options for the worker. + */ + public readonly opts: WorkerOptions /** * Constructs a new poolifier worker.