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