This commit is contained in:
2021-02-20 13:41:08 +08:00
parent 097368af8f
commit 728058441a
+2 -3
View File
@@ -80,9 +80,9 @@ abstract class Pool extends Component
#[Pure] public function name($driver, $cds, $isMaster = false): string #[Pure] public function name($driver, $cds, $isMaster = false): string
{ {
if ($isMaster === true) { if ($isMaster === true) {
return $driver . ':' . $cds . 'master'; return $cds . '_master';
} else { } else {
return $driver . ':' . $cds . 'slave'; return $cds . '_slave';
} }
} }
@@ -132,7 +132,6 @@ abstract class Pool extends Component
return; return;
} }
var_dump($coroutineName);
if ($this->creates === -1) { if ($this->creates === -1) {
$this->creates = Timer::tick(1000, [$this, 'Heartbeat_detection']); $this->creates = Timer::tick(1000, [$this, 'Heartbeat_detection']);
} }