From ffc02cc33a1e91f5180c0822922715c094608abb Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sun, 28 Feb 2021 14:35:53 +0800 Subject: [PATCH] modify --- System/Snowflake.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/System/Snowflake.php b/System/Snowflake.php index 09c9b3de..cb4b538b 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -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(); }