改名
This commit is contained in:
@@ -9,6 +9,7 @@ use JetBrains\PhpStorm\Pure;
|
|||||||
use Snowflake\Abstracts\Component;
|
use Snowflake\Abstracts\Component;
|
||||||
use Snowflake\Abstracts\Config;
|
use Snowflake\Abstracts\Config;
|
||||||
use Snowflake\Exception\ConfigException;
|
use Snowflake\Exception\ConfigException;
|
||||||
|
use Snowflake\Snowflake;
|
||||||
use Swoole\Coroutine;
|
use Swoole\Coroutine;
|
||||||
use Swoole\Coroutine\Channel;
|
use Swoole\Coroutine\Channel;
|
||||||
use Swoole\Timer;
|
use Swoole\Timer;
|
||||||
@@ -91,8 +92,7 @@ class ClientsPool extends Component
|
|||||||
$this->flush($channel, $min);
|
$this->flush($channel, $min);
|
||||||
}
|
}
|
||||||
$num[$key] += $channel->length();
|
$num[$key] += $channel->length();
|
||||||
|
if (str_starts_with($key, 'Mysql') && (Snowflake::isWorker() || Snowflake::isTask())) {
|
||||||
if (str_starts_with($key, 'Mysql')) {
|
|
||||||
$this->debug('Worker #' . env('worker') . ' use client -> ' . $key . ':' . $total);
|
$this->debug('Worker #' . env('worker') . ' use client -> ' . $key . ':' . $total);
|
||||||
}
|
}
|
||||||
$total += $channel->length();
|
$total += $channel->length();
|
||||||
|
|||||||
Reference in New Issue
Block a user