Skip to content

Commit

Permalink
Added TopicPartitionToSwimLaneMapping constructor argument eventuate-…
Browse files Browse the repository at this point in the history
  • Loading branch information
cer committed Aug 6, 2022
1 parent 24ea7c3 commit 2a7d109
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
import io.eventuate.messaging.kafka.basic.consumer.EventuateKafkaConsumerConfigurationProperties;
import io.eventuate.messaging.kafka.basic.consumer.KafkaConsumerFactory;
import io.eventuate.messaging.kafka.common.EventuateKafkaConfigurationProperties;
import io.eventuate.messaging.kafka.spring.common.EventuateKafkaPropertiesConfiguration;
import io.eventuate.messaging.kafka.consumer.MessageConsumerKafkaImpl;
import io.eventuate.messaging.kafka.consumer.OriginalTopicPartitionToSwimLaneMapping;
import io.eventuate.messaging.kafka.spring.common.EventuateKafkaPropertiesConfiguration;
import io.eventuate.messaging.kafka.spring.consumer.KafkaConsumerFactoryConfiguration;
import io.eventuate.tram.connector.AbstractTramCdcTest;
import org.junit.runner.RunWith;
Expand Down Expand Up @@ -42,7 +43,7 @@ public static class Config {
protected void createConsumer(String topic, Consumer<String> consumer) {
MessageConsumerKafkaImpl messageConsumerKafka = new MessageConsumerKafkaImpl(eventuateKafkaConfigurationProperties.getBootstrapServers(),
EventuateKafkaConsumerConfigurationProperties.empty(),
kafkaConsumerFactory);
kafkaConsumerFactory, new OriginalTopicPartitionToSwimLaneMapping());

messageConsumerKafka.subscribe(subscriberId,
ImmutableSet.of(topic),
Expand Down

0 comments on commit 2a7d109

Please sign in to comment.