This commit is contained in:
2021-03-01 15:07:11 +08:00
parent a3612194a2
commit 08b21aeb7b
3 changed files with 22 additions and 35 deletions
-16
View File
@@ -169,22 +169,6 @@ class Snowflake
}
/**
* @throws Exception
*/
public static function clearWorkerId()
{
$dir = storage(null, 'worker');
foreach (glob($dir . '/*') as $file) {
clearstatcache();
if (!file_exists($file)) {
continue;
}
@unlink($file);
}
}
/**
* @param $fileName
* @param $content