modify plugin name

This commit is contained in:
2022-07-11 14:50:33 +08:00
parent 3c3e7f900b
commit 52c6ee7053
+2 -3
View File
@@ -65,15 +65,14 @@ class Pool extends Component
public function check($name): array public function check($name): array
{ {
$channel = $this->channel($name); $channel = $this->channel($name);
var_dump($channel->length());
if ($channel->length() < 1) { if ($channel->length() < 1) {
return [0, 0]; return [0, 0];
} }
$count = $success = 0; $success = 0;
$lists = []; $lists = [];
$count = $channel->length();
while (($pdo = $channel->pop()) instanceof PDO) { while (($pdo = $channel->pop()) instanceof PDO) {
$count += 1;
if ($pdo->check()) { if ($pdo->check()) {
$success += 1; $success += 1;
} }