Skip to content

Commit b0a1347

Browse files
chore: change kafka topic subscription
1 parent 7ac816c commit b0a1347

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/kotlin/infrastructure/event/EventManagerVerticle.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ class EventManagerVerticle : AbstractVerticle() {
6767
KafkaProducerRecord.create(Topics.automationRequestsEventsTopic, event.key, message.body()),
6868
)
6969
}
70-
71-
kafkaConsumer.subscribe(Topics.automationProposalsEventsTopic)
72-
kafkaConsumer.handler(KafkaEventHandler(vertx))
70+
kafkaConsumer.handler(KafkaEventHandler(vertx)).subscribe(Topics.automationProposalsEventsTopic)
7371
}
7472

7573
companion object {

0 commit comments

Comments
 (0)