From 8d72aa7e8bd1475442fcfd4d4ff25792f9b2b3d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 28 Oct 2020 11:42:01 +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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Kafka/Kafka.php b/Kafka/Kafka.php index 48b5eb96..c5ce095d 100644 --- a/Kafka/Kafka.php +++ b/Kafka/Kafka.php @@ -25,8 +25,7 @@ use function Amp\stop; class Kafka extends \Snowflake\Process\Process { - /** @var Channel */ - protected $channel; + protected Channel $channel; /** @@ -80,7 +79,7 @@ class Kafka extends \Snowflake\Process\Process $message = $topic->consume(0, $conf['metadataRefreshIntervalMs'] ?? 1000); if (empty($message)) { $this->application->debug('message null.'); - return; + continue; } switch ($message->err) { case RD_KAFKA_RESP_ERR_NO_ERROR: