modify
This commit is contained in:
@@ -17,9 +17,10 @@ class ServerDefaultEvent extends Server
|
|||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param \Swoole\Server $server
|
* @param \Swoole\Server $server
|
||||||
*/
|
* @throws \Snowflake\Exception\ConfigException
|
||||||
|
*/
|
||||||
public function onStart(\Swoole\Server $server)
|
public function onStart(\Swoole\Server $server)
|
||||||
{
|
{
|
||||||
$this->setProcessName(sprintf('start[%d].server', $server->master_pid));
|
$this->setProcessName(sprintf('start[%d].server', $server->master_pid));
|
||||||
|
|||||||
@@ -14,9 +14,10 @@ class ServerManager extends Server
|
|||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param \Swoole\Server $server
|
* @param \Swoole\Server $server
|
||||||
*/
|
* @throws \Snowflake\Exception\ConfigException
|
||||||
|
*/
|
||||||
public function onManagerStart(\Swoole\Server $server)
|
public function onManagerStart(\Swoole\Server $server)
|
||||||
{
|
{
|
||||||
$this->setProcessName(sprintf('manger[%d].0', $server->manager_pid));
|
$this->setProcessName(sprintf('manger[%d].0', $server->manager_pid));
|
||||||
|
|||||||
Reference in New Issue
Block a user