From bb97aa14fbe179edb6b4de79aa78ef6a29e852a1 Mon Sep 17 00:00:00 2001 From: zyimm Date: Thu, 13 Jul 2023 15:58:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=BD=BF=E7=94=A8=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.php | 4 ++++ src/connection/Config.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/config.php b/src/config.php index e8d615f..0db07fe 100644 --- a/src/config.php +++ b/src/config.php @@ -4,6 +4,10 @@ return [ 'callback_host' => env('mq_callback_host', 'http://192.168.21.170:8085'), 'callback' => '/rocketmq/producer/notify', 'subscribe' => [ + //节点配置 由mq的topic.tag为标识 + // '[topic].[tag]' => [ + // Test:class + // ] ] ]; diff --git a/src/connection/Config.php b/src/connection/Config.php index 6767571..0b315b9 100644 --- a/src/connection/Config.php +++ b/src/connection/Config.php @@ -38,7 +38,7 @@ class Config /** * @return int */ - public function getTimeOut() + public function getTimeOut(): int { return $this->timeOut ?? 60; }