repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
refactor: remove home made random integer generator
[poolifier.git]
/
examples
/
typescript
/
websocket-server-pool
/
ws-worker_threads
/
src
/
worker.ts
diff --git
a/examples/typescript/websocket-server-pool/ws-worker_threads/src/worker.ts
b/examples/typescript/websocket-server-pool/ws-worker_threads/src/worker.ts
index 6f9f0914d3fea36b438141217f56c177f8e7c4c2..a3b106c64d341d55d3a94d327c056da227f6bfdf 100644
(file)
--- a/
examples/typescript/websocket-server-pool/ws-worker_threads/src/worker.ts
+++ b/
examples/typescript/websocket-server-pool/ws-worker_threads/src/worker.ts
@@
-24,9
+24,7
@@
class RequestHandlerWorker<
factorial: (workerData?: Data) => {
return {
data: {
- number: RequestHandlerWorker.factorial(
- workerData?.data?.number as number
- )
+ number: RequestHandlerWorker.factorial(workerData!.data.number!)
}
} as unknown as Response
}