This commit is contained in:
as2252258@163.com
2021-03-01 01:07:29 +08:00
parent be20940927
commit ef02721526
2 changed files with 15 additions and 18 deletions
+1 -2
View File
@@ -393,9 +393,8 @@ class Snowflake
*/
public static function reload(): mixed
{
// $pid = Snowflake::app()->getSwoole()->master_pid;
return Snowflake::app()->getSwoole()->reload();
var_dump(Snowflake::getMasterPid());
return Process::kill((int)Snowflake::getMasterPid(), SIGUSR1);
}