diff --git a/nonebot_plugin_prometheus/metrics.py b/nonebot_plugin_prometheus/metrics.py index 3966963..99411ba 100644 --- a/nonebot_plugin_prometheus/metrics.py +++ b/nonebot_plugin_prometheus/metrics.py @@ -41,7 +41,7 @@ async def handle_bot_disconnect(bot: Bot): ) -@on_message().handle() +@on_message(block=False).handle() async def handle_message(bot: Bot): received_messages_counter.labels(bot.self_id).inc() diff --git a/pyproject.toml b/pyproject.toml index 990316e..be8bee8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nonebot-plugin-prometheus" -version = "0.3.6" +version = "0.3.7" description = "为 NoneBot 和其他插件提供 Prometheus 监控支持" readme = "README.md" requires-python = ">=3.9, <4.0"