This commit is contained in:
2020-09-27 15:54:15 +08:00
parent 510349d6d4
commit 3e8bfad321
+3 -3
View File
@@ -200,12 +200,12 @@ class Snowflake
/** /**
* @param $worker_pid * @param $workerId
* @throws Exception * @throws Exception
*/ */
public static function clearProcessId($worker_pid) public static function clearProcessId($workerId)
{ {
@unlink(storage("{$worker_pid}.sock", 'worker')); @unlink(storage($workerId . '.sock', 'worker'));
} }