This commit is contained in:
as2252258@163.com
2021-02-27 03:22:22 +08:00
parent 5b04a78310
commit b29a0a9c1c
+1 -2
View File
@@ -388,8 +388,7 @@ class Snowflake
*/
public static function reload(): mixed
{
return static::app()->getSwoole()->reload();
return Process::kill((int)Snowflake::getMasterPid());
return Process::kill((int)Snowflake::app()->getSwoole()->getMasterPid(),SIGUSR1);
}