diff --git a/System/Snowflake.php b/System/Snowflake.php index d57ec265..892f8630 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -139,6 +139,9 @@ class Snowflake */ public static function setWorkerId($workerId) { + if (empty($workerId)) { + return $workerId; + } return self::writeFile(storage($workerId . '.sock', 'worker'), $workerId); }