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
Import cleanup
[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 2fd83728d9ff3cb0e8fb1d0bcdff24069946e29a..626e6e072c3d63f6869be875cbe7be13e3e2f25f 100644
(file)
--- a/
src/charging-station/ChargingStationWorker.ts
+++ b/
src/charging-station/ChargingStationWorker.ts
@@
-33,7
+33,7
@@
if (ChargingStationUtils.workerPoolInUse()) {
* Listen messages send by the main thread
*/
function addMessageListener(): void {
* Listen messages send by the main thread
*/
function addMessageListener(): void {
- parentPort?.on('message', (message: ChargingStationWorkerMessage) => {
+ parentPort?.on('message', (message: ChargingStationWorkerMessage
<ChargingStationWorkerData>
) => {
if (message.id === ChargingStationWorkerMessageEvents.START_WORKER_ELEMENT) {
startChargingStation(message.data);
}
if (message.id === ChargingStationWorkerMessageEvents.START_WORKER_ELEMENT) {
startChargingStation(message.data);
}