Skip to content

Commit

Permalink
refactor: Rename asdBytes to depositObj to reflect object shape change
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan-Roan committed Dec 11, 2023
1 parent ffbaa2c commit ba84eae
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,27 +104,27 @@ public Asn1CommandManager(OdeProperties odeProperties) {

}

public void depositToSdw(String asdBytes) throws Asn1CommandManagerException {
public void depositToSdw(String depositObj) throws Asn1CommandManagerException {

if (this.odeProperties.shouldDepositSdwMessagesOverWebsocket()) {
try {
depositor.deposit(asdBytes);
depositor.deposit(depositObj);

logger.info("Deposited message to SDW directly via websocket");
logger.debug("Message deposited: {}", asdBytes);
logger.debug("Message deposited: {}", depositObj);
EventLogger.logger.info("Deposited message to SDW directly via websocket");
EventLogger.logger.debug("Message deposited: {}", asdBytes);
EventLogger.logger.debug("Message deposited: {}", depositObj);
} catch (DdsRequestManagerException e) {
String msg = "Failed to deposit message to SDW";
throw new Asn1CommandManagerException(msg, e);
}
} else {
stringMessageProducer.send(this.getDepositTopic(), null, asdBytes);
stringMessageProducer.send(this.getDepositTopic(), null, depositObj);

logger.info("Published message to SDW deposit topic");
EventLogger.logger.info("Published message to SDW deposit topic");
logger.debug("Message deposited: {}", asdBytes);
EventLogger.logger.debug("Message deposited: {}", asdBytes);
logger.debug("Message deposited: {}", depositObj);
EventLogger.logger.debug("Message deposited: {}", depositObj);
}
}

Expand Down

0 comments on commit ba84eae

Please sign in to comment.