From 8174f2a3a2b6c516ff3548e119d7aa3041f1b623 Mon Sep 17 00:00:00 2001 From: LamGC Date: Sat, 7 May 2022 01:37:21 +0800 Subject: [PATCH] =?UTF-8?q?refactor(bot):=20=E4=BF=AE=E6=AD=A3=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E4=BF=A1=E6=81=AF=E9=94=99=E8=AF=AF,=20=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E7=A9=BA=E7=88=B6=E7=B1=BB=E6=96=B9=E6=B3=95=E8=B0=83?= =?UTF-8?q?=E7=94=A8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正了运行指标信息中的拼写错误, 移除对无操作父类方法的调用, 这么做可以明确表明只有子类实现了操作. --- scalabot-app/src/main/kotlin/ScalaBot.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scalabot-app/src/main/kotlin/ScalaBot.kt b/scalabot-app/src/main/kotlin/ScalaBot.kt index cfe2a49..fbc6c38 100644 --- a/scalabot-app/src/main/kotlin/ScalaBot.kt +++ b/scalabot-app/src/main/kotlin/ScalaBot.kt @@ -114,7 +114,6 @@ internal class ScalaBot( } override fun onClosing() { - super.onClosing() onlineBotGauge.dec() } @@ -151,7 +150,7 @@ internal class ScalaBot( private val updateProcessTime = Summary.build() .name("update_process_duration_seconds") .help( - "Time to process update. (This indicator includes the pre-processing of update by TelegrammBots, " + + "Time to process update. (This indicator includes the pre-processing of update by TelegramBots, " + "so it may be different from the actual execution time of ability. " + "It is not recommended to use it as the accurate execution time of ability)" )