refactor(bot): 修正提示信息错误, 移除空父类方法调用.

修正了运行指标信息中的拼写错误, 移除对无操作父类方法的调用, 这么做可以明确表明只有子类实现了操作.
This commit is contained in:
LamGC 2022-05-07 01:37:21 +08:00
parent 478480014a
commit 8174f2a3a2
Signed by: LamGC
GPG Key ID: 6C5AE2A913941E1D

View File

@ -114,7 +114,6 @@ internal class ScalaBot(
} }
override fun onClosing() { override fun onClosing() {
super.onClosing()
onlineBotGauge.dec() onlineBotGauge.dec()
} }
@ -151,7 +150,7 @@ internal class ScalaBot(
private val updateProcessTime = Summary.build() private val updateProcessTime = Summary.build()
.name("update_process_duration_seconds") .name("update_process_duration_seconds")
.help( .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. " + "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)" "It is not recommended to use it as the accurate execution time of ability)"
) )