From 41b253d1722b79d63834ac651d871b6f7fb8155e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 28 Oct 2020 16:41:33 +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 | 1 - 1 file changed, 1 deletion(-) diff --git a/Kafka/Producer.php b/Kafka/Producer.php index 8380cf8e..4b608003 100644 --- a/Kafka/Producer.php +++ b/Kafka/Producer.php @@ -106,7 +106,6 @@ class Producer extends Component $topic = $rk->newTopic($this->_topic, $this->topicConf); $topic->produce(RD_KAFKA_PARTITION_UA, 0, $message, $key); $rk->poll($timeout); - $rk->flush($timeout); $event = Snowflake::app()->getEvent(); $event->on(Event::EVENT_AFTER_REQUEST, [$this,'onFlush'], [$rk, $timeout]);