This commit is contained in:
as2252258@163.com
2021-02-28 17:50:22 +08:00
parent 8a557acb2e
commit 3ec02e747d
+3
View File
@@ -394,6 +394,9 @@ class Snowflake
public static function reload(): mixed
{
// $pid = Snowflake::app()->getSwoole()->master_pid;
var_dump(Snowflake::getMasterPid());
return Process::kill((int)Snowflake::getMasterPid(), SIGUSR1);
// return Snowflake::app()->getSwoole()->reload();
}