From 3e8bfad321b9135b8b51076519bbd5447082155f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Sun, 27 Sep 2020 15:54:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Snowflake.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/System/Snowflake.php b/System/Snowflake.php index 47cbafc0..d6077863 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -200,12 +200,12 @@ class Snowflake /** - * @param $worker_pid + * @param $workerId * @throws Exception */ - public static function clearProcessId($worker_pid) + public static function clearProcessId($workerId) { - @unlink(storage("{$worker_pid}.sock", 'worker')); + @unlink(storage($workerId . '.sock', 'worker')); }