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
Spell fixlet in ATG log message
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
ChargingStationWorker.ts
diff --git
a/src/charging-station/ChargingStationWorker.ts
b/src/charging-station/ChargingStationWorker.ts
index 20a812e496a78f1f128b88a2f33df652ab04ee74..81e0296d8761eca012b63085553df13615b14980 100644
(file)
--- a/
src/charging-station/ChargingStationWorker.ts
+++ b/
src/charging-station/ChargingStationWorker.ts
@@
-1,6
+1,6
@@
// Partial Copyright Jerome Benoit. 2021. All Rights Reserved.
// Partial Copyright Jerome Benoit. 2021. All Rights Reserved.
-import { ChargingStationWorkerData, Worker
Events, WorkerMessage
} from '../types/Worker';
+import { ChargingStationWorkerData, Worker
Message, WorkerMessageEvents
} from '../types/Worker';
import { parentPort, workerData } from 'worker_threads';
import ChargingStation from './ChargingStation';
import { parentPort, workerData } from 'worker_threads';
import ChargingStation from './ChargingStation';
@@
-25,7
+25,7
@@
if (Utils.workerPoolInUse()) {
*/
function addMessageListener(): void {
parentPort?.on('message', (message: WorkerMessage) => {
*/
function addMessageListener(): void {
parentPort?.on('message', (message: WorkerMessage) => {
- if (message.id === WorkerEvents.START_WORKER_ELEMENT) {
+ if (message.id === Worker
Message
Events.START_WORKER_ELEMENT) {
startChargingStation(message.data);
}
});
startChargingStation(message.data);
}
});