AbstractWorker: Reorder attributes
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 18 Apr 2022 08:21:03 +0000 (10:21 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 18 Apr 2022 08:21:03 +0000 (10:21 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/worker/abstract-worker.ts

index 3a8414d84ff7aba6d8524d908a3b53094f583fa4..fbb8f8390eff2207253195eb3817c68dc879e2b7 100644 (file)
@@ -21,10 +21,6 @@ export abstract class AbstractWorker<
   Data = unknown,
   Response = unknown
 > extends AsyncResource {
   Data = unknown,
   Response = unknown
 > extends AsyncResource {
-  /**
-   * Options for the worker.
-   */
-  public readonly opts: WorkerOptions
   /**
    * Timestamp of the last task processed by this worker.
    */
   /**
    * 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
    * 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.
 
   /**
    * Constructs a new poolifier worker.