From 3992be5afb1a1f4b7ba8b522e82815885e9c803c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 28 Dec 2020 17:31:51 +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/Kafka.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Kafka/Kafka.php b/Kafka/Kafka.php index d86779c8..9670bcd1 100644 --- a/Kafka/Kafka.php +++ b/Kafka/Kafka.php @@ -62,6 +62,9 @@ class Kafka extends \Snowflake\Process\Process [$config, $topic, $conf] = $this->kafkaConfig($kafkaServer); $objRdKafka = new Consumer($config); $topic = $objRdKafka->newTopic($kafkaServer['topic'], $topic); + + var_dump($kafkaServer['topic']); + $topic->consumeStart(0, RD_KAFKA_OFFSET_STORED); while (true) { $this->resolve($topic, $conf['interval'] ?? 1000);