From ee23b7887293a39b867c9db181c8c76a533df62e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 5 Jul 2021 11:14:03 +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 --- System/Abstracts/Pool.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index 921e5a04..24d3364f 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -73,7 +73,7 @@ abstract class Pool extends Component /** * @throws Exception */ - public function Heartbeat_detection($ticker, string $name, bool $isMaster) + public function Heartbeat_detection($ticker, string $name) { if (env('state') == 'exit') { Timer::clear($this->creates); @@ -158,7 +158,7 @@ abstract class Pool extends Component return; } if ($this->creates === -1) { - $this->creates = Timer::tick(1000, [$this, 'Heartbeat_detection'], $name, $isMaster); + $this->creates = Timer::tick(1000, [$this, 'Heartbeat_detection'], $name); } static::$_items[$name] = new Channel($max); $this->max = $max; @@ -304,7 +304,6 @@ abstract class Pool extends Component } $channel = $this->getChannel($name); if (!$channel->isFull()) { - var_dump($name); $channel->push($client); } unset($client);