Add protected removeWorker member function (#124)
[poolifier.git] / src / worker / abstract-worker.ts
index 4b68d8975a3cc21306a1d4ff19ab9592b5c48297..1ae7b65c7efbe67c6e9efafedd44301c5a80f15c 100644 (file)
@@ -30,7 +30,7 @@ export abstract class AbstractWorker<
     this.maxInactiveTime = this.opts.maxInactiveTime ?? 1000 * 60
     this.async = !!this.opts.async
     this.lastTask = Date.now()
-    if (!fn) throw new Error('Fn parameter is mandatory')
+    if (!fn) throw new Error('fn parameter is mandatory')
     // keep the worker active
     if (!isMain) {
       this.interval = setInterval(