From: Jérôme Benoit Date: Sat, 1 Oct 2022 18:04:56 +0000 (+0200) Subject: ATG: initializeConnectorStatus -> setConnectorStatus X-Git-Tag: v1.1.75~16 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=45df3874f855f883ba8b56238973966b455555eb;p=e-mobility-charging-stations-simulator.git ATG: initializeConnectorStatus -> setConnectorStatus Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/AutomaticTransactionGenerator.ts b/src/charging-station/AutomaticTransactionGenerator.ts index fb04d709..46c595f9 100644 --- a/src/charging-station/AutomaticTransactionGenerator.ts +++ b/src/charging-station/AutomaticTransactionGenerator.ts @@ -138,7 +138,7 @@ export default class AutomaticTransactionGenerator extends AsyncResource { } private async internalStartConnector(connectorId: number): Promise { - 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 =