refactor: cleanup cached request helpers namespace
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 4 Feb 2024 10:52:51 +0000 (11:52 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 4 Feb 2024 10:52:51 +0000 (11:52 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ocpp/OCPPRequestService.ts

index 8627c004592aa07f9c6f6e6da0ef8bd6c76e9d1d..57f6a06191081d328bc8069be96b1133699a2611 100644 (file)
@@ -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,