another try to improve performances (without reusing connection)

This commit is contained in:
slavisa 2017-06-02 10:32:48 +02:00
parent 03e784f895
commit 52cbcf3e35

View File

@ -45,7 +45,7 @@ class KafkaStreamsHelperActor extends Actor with ObpActorInit with ObpActorHelpe
private val consumer: Source[ConsumerRecord[String, String], Consumer.Control] = {
val assignment = Subscriptions.assignmentWithOffset(new TopicPartition(Topics.connectorTopic.response, 0), 0)
Consumer.plainExternalSource(consumerActor, assignment)
Consumer.plainSource(consumerSettings, assignment)
.completionTimeout(completionTimeout)
}
@ -130,4 +130,4 @@ object Topics {
val connectorTopic = Topic(requestTopic, responseTopic)
}
}