改名
This commit is contained in:
@@ -266,7 +266,6 @@ class Snowflake
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param string $class
|
||||
* @param array $params
|
||||
@@ -315,6 +314,7 @@ class Snowflake
|
||||
|
||||
/**
|
||||
* @param $process
|
||||
* @throws ComponentException
|
||||
*/
|
||||
public static function shutdown($process): void
|
||||
{
|
||||
@@ -376,10 +376,7 @@ class Snowflake
|
||||
*/
|
||||
public static function reload(): mixed
|
||||
{
|
||||
return Snowflake::app()->getSwoole()->reload();
|
||||
|
||||
|
||||
return Process::kill((int)Snowflake::getMasterPid(), SIGUSR1);
|
||||
return Process::kill((int)Snowflake::getMasterPid(), SIGUSR1 | SIGKILL);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user