This commit is contained in:
2020-09-07 16:08:17 +08:00
parent 4a11a0e813
commit 5cbf792474
3 changed files with 14 additions and 4 deletions
+11
View File
@@ -130,6 +130,17 @@ class Snowflake
}
/**
* @param $workerId
* @return false|int|mixed
* @throws Exception
*/
public static function setWorkerId($workerId)
{
return self::writeFile(storage($workerId . '.sock', 'worker'), $workerId);
}
/**
* @param $fileName
* @param $content