modify plugin name
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user