Skip to content

Commit

Permalink
🐛 on_message matcher 不阻断事件传播
Browse files Browse the repository at this point in the history
  • Loading branch information
suyiiyii committed Dec 30, 2024
1 parent a358d1f commit f4d59c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nonebot_plugin_prometheus/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit f4d59c5

Please sign in to comment.