From 89b39de1ff3bca72c63966797e3eaee02f0aeb7e Mon Sep 17 00:00:00 2001 From: Him188 Date: Mon, 30 Dec 2019 23:25:01 +0800 Subject: [PATCH] Make sendPacket (internal) inline --- .../src/commonMain/kotlin/net.mamoe.mirai.timpc/TIMPCBot.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirai-core-timpc/src/commonMain/kotlin/net.mamoe.mirai.timpc/TIMPCBot.kt b/mirai-core-timpc/src/commonMain/kotlin/net.mamoe.mirai.timpc/TIMPCBot.kt index 3b0ef95ea..b45f72eb4 100644 --- a/mirai-core-timpc/src/commonMain/kotlin/net.mamoe.mirai.timpc/TIMPCBot.kt +++ b/mirai-core-timpc/src/commonMain/kotlin/net.mamoe.mirai.timpc/TIMPCBot.kt @@ -225,7 +225,7 @@ internal abstract class TIMPCBotBase constructor( internal inline fun inline(block: () -> R): R = block() -internal suspend fun TIMPCBot.sendPacket(toSend: OutgoingPacket) = this.network.socket.sendPacket(toSend) +internal suspend inline fun TIMPCBot.sendPacket(toSend: OutgoingPacket) = this.network.socket.sendPacket(toSend) /** * 以 [Bot] 作为接收器 (receiver) 并调用 [block], 返回 [block] 的返回值.