This commit is contained in:
as2252258@163.com
2021-02-28 14:33:40 +08:00
parent db67325288
commit 820a2a37af
+2
View File
@@ -393,6 +393,8 @@ class Snowflake
*/
public static function reload(): mixed
{
$pid = Snowflake::app()->getSwoole()->master_pid;
return Process::kill($pid, SIGUSR1 & SIGUSR2);
return Snowflake::app()->getSwoole()->reload();
}