This commit is contained in:
2021-03-02 14:32:46 +08:00
parent 341e0ec206
commit 77d1882c5d
+2 -5
View File
@@ -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);
} }