From a9e172b975f85faf0ba03f256c769fdaf5907f3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 5 Aug 2021 15:34:53 +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 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Kafka/Kafka.php b/Kafka/Kafka.php index 44064fc3..51fe31c3 100644 --- a/Kafka/Kafka.php +++ b/Kafka/Kafka.php @@ -40,10 +40,11 @@ class Kafka implements CustomProcess } - /** - * @return string - * @throws ConfigException - */ + /** + * @param Process $process + * @return string + * @throws ConfigException + */ public function getProcessName(Process $process): string { $name = Config::get('id', 'system') . '[' . $process->pid . ']'; @@ -123,6 +124,8 @@ class Kafka implements CustomProcess { go(function () use ($topic, $message) { try { + var_dump($topic, $message); + $server = Snowflake::app()->getSwoole(); $setting = $server->setting['worker_num'];