This commit is contained in:
2020-08-31 21:34:04 +08:00
parent 4686b0d27e
commit 32913fa3e1
+9 -1
View File
@@ -108,6 +108,15 @@ class Snowflake
}
/**
* @return Container
*/
public static function getDi()
{
return static::$container;
}
/**
* @param $workerId
* @return false|int|mixed
@@ -127,7 +136,6 @@ class Snowflake
*/
public static function writeFile($fileName, $content, $is_append = FILE_APPEND)
{
return false;
if (self::inCoroutine()) {
return Coroutine::writeFile($fileName, $content, $is_append);
} else {