Skip to content

Commit

Permalink
revert client builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen Lien committed Feb 2, 2022
1 parent 7c83fcc commit 033dec1
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import no.nav.common.kafka.consumer.KafkaConsumerClient
import no.nav.common.kafka.consumer.util.KafkaConsumerClientBuilder
import no.nav.common.kafka.consumer.util.deserializer.Deserializers.stringDeserializer
import no.nav.common.kafka.util.KafkaPropertiesBuilder
import no.nav.common.kafka.util.KafkaPropertiesPreset
import no.nav.mulighetsrommet.api.database.DatabaseFactory
import org.apache.kafka.clients.consumer.ConsumerRecord
import org.apache.kafka.common.serialization.ByteArrayDeserializer
Expand Down Expand Up @@ -49,17 +50,7 @@ class KafkaFactory(private val db: DatabaseFactory) {
.withDeserializers(ByteArrayDeserializer::class.java, ByteArrayDeserializer::class.java)
.build()
} else {
// KafkaPropertiesPreset.aivenDefaultConsumerProperties(consumerGroupId)
KafkaPropertiesBuilder.consumerBuilder()
.withBaseProperties(1)
.withConsumerGroupId(consumerGroupId)
.withAivenBrokerUrl()
.withAivenAuth()
.withDeserializers(
ByteArrayDeserializer::class.java,
ByteArrayDeserializer::class.java
)
.build()
KafkaPropertiesPreset.aivenDefaultConsumerProperties(consumerGroupId)
}
}

Expand Down

0 comments on commit 033dec1

Please sign in to comment.