repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docs: updates changelog entries
[poolifier.git]
/
src
/
worker
/
abstract-worker.ts
diff --git
a/src/worker/abstract-worker.ts
b/src/worker/abstract-worker.ts
index 5165417924b66cafbb9dceb6e2cab53c24ee7965..475595eccf5f2e2c85b4eac8ba251f306f472c5d 100644
(file)
--- a/
src/worker/abstract-worker.ts
+++ b/
src/worker/abstract-worker.ts
@@
-29,10
+29,6
@@
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.
*
@@
-47,7
+43,7
@@
export abstract class AbstractWorker<
protected readonly isMain: boolean,
fn: (data: Data) => Response,
protected mainWorker: MainWorker | undefined | null,
protected readonly isMain: boolean,
fn: (data: Data) => Response,
protected mainWorker: MainWorker | undefined | null,
- opts: WorkerOptions = {
+
protected readonly
opts: WorkerOptions = {
/**
* The kill behavior option on this Worker or its default value.
*/
/**
* The kill behavior option on this Worker or its default value.
*/
@@
-60,7
+56,6
@@
export abstract class AbstractWorker<
}
) {
super(type)
}
) {
super(type)
- this.opts = opts
this.checkFunctionInput(fn)
this.checkWorkerOptions(this.opts)
if (!this.isMain) {
this.checkFunctionInput(fn)
this.checkWorkerOptions(this.opts)
if (!this.isMain) {