mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 18:00:33 +08:00
Improve performance
This commit is contained in:
parent
eb02c28e3b
commit
f015294367
@ -74,8 +74,7 @@ actual object MiraiPlatformUtils {
|
|||||||
* Ktor HttpClient. 不同平台使用不同引擎.
|
* Ktor HttpClient. 不同平台使用不同引擎.
|
||||||
*/
|
*/
|
||||||
@OptIn(KtorExperimentalAPI::class)
|
@OptIn(KtorExperimentalAPI::class)
|
||||||
actual val Http: HttpClient
|
actual val Http: HttpClient = HttpClient(CIO)
|
||||||
get() = HttpClient(CIO)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Localhost 解析
|
* Localhost 解析
|
||||||
|
@ -43,7 +43,7 @@ interface LowLevelBotAPIAccessor {
|
|||||||
@MiraiExperimentalAPI
|
@MiraiExperimentalAPI
|
||||||
@LowLevelAPI
|
@LowLevelAPI
|
||||||
@MiraiInternalAPI
|
@MiraiInternalAPI
|
||||||
abstract val account: BotAccount
|
val account: BotAccount
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 构造一个 [_lowLevelNewQQ] 对象. 它持有对 [Bot] 的弱引用([WeakRef]).
|
* 构造一个 [_lowLevelNewQQ] 对象. 它持有对 [Bot] 的弱引用([WeakRef]).
|
||||||
|
@ -75,8 +75,7 @@ actual object MiraiPlatformUtils {
|
|||||||
* Ktor HttpClient. 不同平台使用不同引擎.
|
* Ktor HttpClient. 不同平台使用不同引擎.
|
||||||
*/
|
*/
|
||||||
@OptIn(KtorExperimentalAPI::class)
|
@OptIn(KtorExperimentalAPI::class)
|
||||||
actual val Http: HttpClient
|
actual val Http: HttpClient = HttpClient(CIO)
|
||||||
get() = HttpClient(CIO)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Localhost 解析
|
* Localhost 解析
|
||||||
|
Loading…
Reference in New Issue
Block a user