Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo-catalano committed May 23, 2024
1 parent ab09099 commit 5ef8b5f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class RTConsumer {
private ServiceBusProcessorClient receiverClient;

@EventListener(ApplicationReadyEvent.class)
public void refreshCache() {
public void initializeClient() {
if(receiverClient!=null){
log.info("[Scheduled] Starting RTConsumer {}", ZonedDateTime.now());
receiverClient.start();
Expand Down Expand Up @@ -73,6 +73,7 @@ public void preDestroy(){

public void processMessage(ServiceBusReceivedMessageContext context) {
ServiceBusReceivedMessage message = context.getMessage();
log.info("Processing "+message.getMessageId());
try{
String cosmosId = new String(message.getBody().toBytes());
String station = message.getSubject();
Expand Down

0 comments on commit 5ef8b5f

Please sign in to comment.