Improve performance

This commit is contained in:
Him188 2020-03-17 12:57:26 +08:00
parent eb02c28e3b
commit f015294367
3 changed files with 3 additions and 5 deletions

View File

@ -74,8 +74,7 @@ actual object MiraiPlatformUtils {
* Ktor HttpClient. 不同平台使用不同引擎.
*/
@OptIn(KtorExperimentalAPI::class)
actual val Http: HttpClient
get() = HttpClient(CIO)
actual val Http: HttpClient = HttpClient(CIO)
/**
* Localhost 解析

View File

@ -43,7 +43,7 @@ interface LowLevelBotAPIAccessor {
@MiraiExperimentalAPI
@LowLevelAPI
@MiraiInternalAPI
abstract val account: BotAccount
val account: BotAccount
/**
* 构造一个 [_lowLevelNewQQ] 对象. 它持有对 [Bot] 的弱引用([WeakRef]).

View File

@ -75,8 +75,7 @@ actual object MiraiPlatformUtils {
* Ktor HttpClient. 不同平台使用不同引擎.
*/
@OptIn(KtorExperimentalAPI::class)
actual val Http: HttpClient
get() = HttpClient(CIO)
actual val Http: HttpClient = HttpClient(CIO)
/**
* Localhost 解析