From b330e95d22cf6fbd9d9ec3fa1efc317afa506cf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 2 Mar 2021 15:06:37 +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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Kafka/Kafka.php b/Kafka/Kafka.php index e70619f0..a72c6efd 100644 --- a/Kafka/Kafka.php +++ b/Kafka/Kafka.php @@ -46,12 +46,13 @@ class Kafka extends \Snowflake\Process\Process /** * @param array $kafkaServer + * @throws ComponentException */ private function waite(array $kafkaServer) { try { - $prefix = ucfirst(rtrim(Snowflake::app()->id, ':')); - swoole_set_process_name($prefix . ': Kafka Consumer ' . $kafkaServer['topic']); + $prefix = rtrim(Snowflake::app()->id, ':'); + swoole_set_process_name($prefix . ' Kafka Consumer ' . $kafkaServer['topic']); [$config, $topic, $conf] = $this->kafkaConfig($kafkaServer); if (empty($config) && empty($topic) && empty($conf)) { @@ -73,6 +74,7 @@ class Kafka extends \Snowflake\Process\Process /** * @param ConsumerTopic $topic * @param $interval + * @throws ComponentException */ private function resolve(ConsumerTopic $topic, $interval) {