This commit is contained in:
as2252258@163.com
2021-02-28 14:35:53 +08:00
parent a9146b09fd
commit ffc02cc33a
+3 -3
View File
@@ -393,9 +393,9 @@ class Snowflake
*/
public static function reload(): mixed
{
$pid = Snowflake::app()->getSwoole()->master_pid;
return Process::kill($pid, SIGUSR1);
return Snowflake::app()->getSwoole()->reload();
// $pid = Snowflake::app()->getSwoole()->master_pid;
return Process::kill((int)Snowflake::getMasterPid(), SIGUSR1);
// return Snowflake::app()->getSwoole()->reload();
}