mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 01:30:17 +08:00
Improve performance
This commit is contained in:
parent
eb02c28e3b
commit
f015294367
@ -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 解析
|
||||
|
@ -43,7 +43,7 @@ interface LowLevelBotAPIAccessor {
|
||||
@MiraiExperimentalAPI
|
||||
@LowLevelAPI
|
||||
@MiraiInternalAPI
|
||||
abstract val account: BotAccount
|
||||
val account: BotAccount
|
||||
|
||||
/**
|
||||
* 构造一个 [_lowLevelNewQQ] 对象. 它持有对 [Bot] 的弱引用([WeakRef]).
|
||||
|
@ -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 解析
|
||||
|
Loading…
Reference in New Issue
Block a user