From 1197ce7c86f8a3635bb7826600dcb3f3ca5c0848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 28 Oct 2020 16:14:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Kafka/Producer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kafka/Producer.php b/Kafka/Producer.php index fa18ce80..2496f914 100644 --- a/Kafka/Producer.php +++ b/Kafka/Producer.php @@ -101,7 +101,7 @@ class Producer extends Component $this->error(sprintf("Kafka error: %s (reason: %s)", rd_kafka_err2str($err), $reason)); }); - $rk = new \RdKafka\Producer(); + $rk = new \RdKafka\Producer($this->conf); $topic = $rk->newTopic($this->_topic, $this->topicConf); $topic->produce(RD_KAFKA_PARTITION_UA, 0, $message, $key); $rk->poll($timeout);