repositories
/
poolifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59a11fd
)
AbstractWorker: Reorder attributes
author
Jérôme Benoit
<jerome.benoit@sap.com>
Mon, 18 Apr 2022 08:21:03 +0000
(10:21 +0200)
committer
Jé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
patch
|
blob
|
blame
|
history
diff --git
a/src/worker/abstract-worker.ts
b/src/worker/abstract-worker.ts
index 3a8414d84ff7aba6d8524d908a3b53094f583fa4..fbb8f8390eff2207253195eb3817c68dc879e2b7 100644
(file)
--- 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.