From: Jérôme Benoit Date: Sun, 4 Feb 2024 10:52:51 +0000 (+0100) Subject: refactor: cleanup cached request helpers namespace X-Git-Tag: v1.2.35~22 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=f10f20c9883e91479090763312db0d816c490cca;p=e-mobility-charging-stations-simulator.git refactor: cleanup cached request helpers namespace Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ocpp/OCPPRequestService.ts b/src/charging-station/ocpp/OCPPRequestService.ts index 8627c004..57f6a061 100644 --- a/src/charging-station/ocpp/OCPPRequestService.ts +++ b/src/charging-station/ocpp/OCPPRequestService.ts @@ -307,7 +307,7 @@ export abstract class OCPPRequestService { // Buffer chargingStation.bufferMessage(messageToSend) if (messageType === MessageType.CALL_MESSAGE) { - this.cacheRequestPromise( + this.setCachedRequest( chargingStation, messageId, messagePayload as JsonType, @@ -363,7 +363,7 @@ export abstract class OCPPRequestService { )} payload: ${messageToSend}` ) if (messageType === MessageType.CALL_MESSAGE) { - this.cacheRequestPromise( + this.setCachedRequest( chargingStation, messageId, messagePayload as JsonType, @@ -461,7 +461,7 @@ export abstract class OCPPRequestService { return messageToSend } - private cacheRequestPromise ( + private setCachedRequest ( chargingStation: ChargingStation, messageId: string, messagePayload: JsonType,