改名
This commit is contained in:
@@ -8,11 +8,8 @@ use Exception;
|
||||
|
||||
use HttpServer\Http\Context;
|
||||
use JetBrains\PhpStorm\Pure;
|
||||
use PDO;
|
||||
use Redis;
|
||||
use Snowflake\Exception\ComponentException;
|
||||
use Snowflake\Exception\ConfigException;
|
||||
use Snowflake\Pool\Timeout;
|
||||
use Swoole\Coroutine;
|
||||
use Swoole\Coroutine\Channel;
|
||||
use Swoole\Timer;
|
||||
@@ -167,7 +164,7 @@ abstract class Pool extends Component
|
||||
*/
|
||||
public function printClients($cds, $coroutineName, $isBefore = false)
|
||||
{
|
||||
// $this->warning(($isBefore ? 'before ' : '') . 'create client[address: ' . $cds . ', ' . env('workerId') . ', coroutine: ' . Coroutine::getCid() . ', has num: ' . $this->size($coroutineName) . ', has create: ' . $this->_create . ']');
|
||||
$this->warning(($isBefore ? 'before ' : '') . 'create client[address: ' . $cds . ', ' . env('worker', 0) . ', coroutine: ' . Coroutine::getCid() . ', has num: ' . $this->size($coroutineName) . ']');
|
||||
}
|
||||
|
||||
|
||||
@@ -286,8 +283,8 @@ abstract class Pool extends Component
|
||||
unset($client);
|
||||
$this->desc($name);
|
||||
}
|
||||
$this->_items[$name]->close();
|
||||
$this->_items[$name] = null;
|
||||
$this->_items[$name]->close();
|
||||
$this->_items[$name] = null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user