ATG: initializeConnectorStatus -> setConnectorStatus
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 1 Oct 2022 18:04:56 +0000 (20:04 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 1 Oct 2022 18:04:56 +0000 (20:04 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/AutomaticTransactionGenerator.ts

index fb04d709287b5a8ca0b9945b678f7a06c5fe679c..46c595f99441643c3d184ba7f83553647c01d44f 100644 (file)
@@ -138,7 +138,7 @@ export default class AutomaticTransactionGenerator extends AsyncResource {
   }
 
   private async internalStartConnector(connectorId: number): Promise<void> {
-    this.initializeConnectorStatus(connectorId);
+    this.setConnectorStatus(connectorId);
     this.connectorsStatus.get(connectorId).start = true;
     logger.info(
       this.logPrefix(connectorId) +
@@ -252,7 +252,7 @@ export default class AutomaticTransactionGenerator extends AsyncResource {
     );
   }
 
-  private initializeConnectorStatus(connectorId: number): void {
+  private setConnectorStatus(connectorId: number): void {
     this.connectorsStatus.get(connectorId).authorizeRequests =
       this?.connectorsStatus.get(connectorId)?.authorizeRequests ?? 0;
     this.connectorsStatus.get(connectorId).acceptedAuthorizeRequests =