refactor: split ChargingStationUtils class static methods into functions
[e-mobility-charging-stations-simulator.git] / src / charging-station / Bootstrap.ts
index cb4b65ebab581860c0ae39ea83493df9785e4ee6..e329a65b4e32ffa1018aa6b01a35b32ffacd0649 100644 (file)
@@ -7,7 +7,7 @@ import { isMainThread } from 'node:worker_threads';
 
 import chalk from 'chalk';
 
-import { ChargingStationUtils } from './ChargingStationUtils';
+import { waitForChargingStationEvents } from './ChargingStationUtils';
 import type { AbstractUIServer } from './ui-server/AbstractUIServer';
 import { UIServerFactory } from './ui-server/UIServerFactory';
 import { version } from '../../package.json' assert { type: 'json' };
@@ -168,7 +168,7 @@ export class Bootstrap extends EventEmitter {
           )
         );
         await Promise.race([
-          ChargingStationUtils.waitForChargingStationEvents(
+          waitForChargingStationEvents(
             this,
             ChargingStationWorkerMessageEvents.stopped,
             this.numberOfChargingStations