repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
feat: add helper to get the worker wait time in worker choice strategies
[poolifier.git]
/
src
/
worker
/
abstract-worker.ts
diff --git
a/src/worker/abstract-worker.ts
b/src/worker/abstract-worker.ts
index 176a5893caeeec7cb9d82095840b97498b3822b0..8a38b4e576464ecb88078540cc8604d7b3ad323f 100644
(file)
--- a/
src/worker/abstract-worker.ts
+++ b/
src/worker/abstract-worker.ts
@@
-266,7
+266,7
@@
export abstract class AbstractWorker<
name = name ?? DEFAULT_FUNCTION_NAME
const fn = this.taskFunctions.get(name)
if (fn == null) {
- throw new Error(`Task function
"${name}"
not found`)
+ throw new Error(`Task function
'${name}'
not found`)
}
return fn
}