Skip to content

Commit d1e579c

Browse files
TRAX course replication
1 parent d523d99 commit d1e579c

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

api/src/main/java/ca/bc/gov/educ/api/pen/replication/service/EventHandlerDelegatorService.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,15 @@ public EventHandlerDelegatorService(final ChoreographedEventPersistenceService c
4545
* @throws IOException the io exception
4646
*/
4747
public void handleChoreographyEvent(@NonNull final ChoreographedEvent choreographedEvent, final Message message) throws IOException {
48-
try {
49-
final var persistedEvent = this.choreographedEventPersistenceService.persistEventToDB(choreographedEvent);
48+
// try {
49+
// final var persistedEvent = this.choreographedEventPersistenceService.persistEventToDB(choreographedEvent);
50+
log.info("Handling event with ID: " + choreographedEvent.getEventID());
5051
message.ack(); // acknowledge to Jet Stream that api got the message and it is now in DB.
5152
log.info("acknowledged to Jet Stream...");
52-
this.choreographer.handleEvent(persistedEvent);
53-
} catch (final BusinessException businessException) {
54-
message.ack(); // acknowledge to Jet Stream that api got the message already...
55-
log.info("acknowledged to Jet Stream...");
56-
}
53+
// this.choreographer.handleEvent(persistedEvent);
54+
// } catch (final BusinessException businessException) {
55+
// message.ack(); // acknowledge to Jet Stream that api got the message already...
56+
// log.info("acknowledged to Jet Stream...");
57+
// }
5758
}
5859
}

0 commit comments

Comments
 (0)