改名
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user