改名
This commit is contained in:
@@ -73,7 +73,7 @@ abstract class Pool extends Component
|
|||||||
/**
|
/**
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function Heartbeat_detection($ticker, string $name, bool $isMaster)
|
public function Heartbeat_detection($ticker, string $name)
|
||||||
{
|
{
|
||||||
if (env('state') == 'exit') {
|
if (env('state') == 'exit') {
|
||||||
Timer::clear($this->creates);
|
Timer::clear($this->creates);
|
||||||
@@ -158,7 +158,7 @@ abstract class Pool extends Component
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ($this->creates === -1) {
|
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);
|
static::$_items[$name] = new Channel($max);
|
||||||
$this->max = $max;
|
$this->max = $max;
|
||||||
@@ -304,7 +304,6 @@ abstract class Pool extends Component
|
|||||||
}
|
}
|
||||||
$channel = $this->getChannel($name);
|
$channel = $this->getChannel($name);
|
||||||
if (!$channel->isFull()) {
|
if (!$channel->isFull()) {
|
||||||
var_dump($name);
|
|
||||||
$channel->push($client);
|
$channel->push($client);
|
||||||
}
|
}
|
||||||
unset($client);
|
unset($client);
|
||||||
|
|||||||
Reference in New Issue
Block a user