repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix worker thread exit message.
[e-mobility-charging-stations-simulator.git]
/
src
/
worker
/
WorkerStaticPool.ts
diff --git
a/src/worker/WorkerStaticPool.ts
b/src/worker/WorkerStaticPool.ts
index 20d53b0e02d305e9f4623175cdca0301a737a81b..9c2bc41d4adac0d905a4603e3adfd9c57187a646 100644
(file)
--- a/
src/worker/WorkerStaticPool.ts
+++ b/
src/worker/WorkerStaticPool.ts
@@
-4,7
+4,6
@@
import Constants from '../utils/Constants';
import Utils from '../utils/Utils';
import { WorkerData } from '../types/Worker';
import Wrk from './Wrk';
import Utils from '../utils/Utils';
import { WorkerData } from '../types/Worker';
import Wrk from './Wrk';
-import { threadId } from 'worker_threads';
export default class WorkerStaticPool extends Wrk {
private pool: StaticPool;
export default class WorkerStaticPool extends Wrk {
private pool: StaticPool;
@@
-60,7
+59,7
@@
class StaticPool extends FixedThreadPool<WorkerData> {
{
exitHandler: (code) => {
if (code !== 0) {
{
exitHandler: (code) => {
if (code !== 0) {
- console.error(`Worker
${threadId}
stopped with exit code ${code}`);
+ console.error(`Worker stopped with exit code ${code}`);
}
}
}
}
}
}