This commit is contained in:
2020-09-11 18:20:08 +08:00
parent 31bc2ef1ff
commit 89b9cc6d1b
+3
View File
@@ -139,6 +139,9 @@ class Snowflake
*/
public static function setWorkerId($workerId)
{
if (empty($workerId)) {
return $workerId;
}
return self::writeFile(storage($workerId . '.sock', 'worker'), $workerId);
}