Commit 64b461fd authored by hangjun83's avatar hangjun83

openapi

parent e82e0d4e
......@@ -20,7 +20,7 @@ class KafkaService
public function __construct($config)
{
$this->kafkaProducerConfig = $this->getProducerConfig($config);
$this->kafkaConsumerConfig = $this->getConsumerConfig($config);
//$this->kafkaConsumerConfig = $this->getConsumerConfig($config);
$this->config = $config;
}
......@@ -59,7 +59,7 @@ class KafkaService
*/
public function startConsumer()
{
$consumer = new Consumer($this->kafkaConsumerConfig, function (ConsumeMessage $message) {
$consumer = new Consumer($this->getConsumerConfig($this->config), function (ConsumeMessage $message) {
$consumer = $message->getConsumer();
$kafkaMessage = json_decode($message->getValue(),true);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment