AstrBot icon indicating copy to clipboard operation
AstrBot copied to clipboard

[Bug] 优先级priority未生效

Open tyql688 opened this issue 1 year ago • 0 comments

发生了什么

Image

handler 注册时采用heapq进行优先级排序。

Image

使用过程中直接调用self._handlers 进行遍历

期望结果:应该使用heapq进行pop遍历才能保证handler有序。

如何复现?

如上。

AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

最新的astrbot

操作系统

macOS

报错日志

无

你愿意提交 PR 吗?

  • [ ] 是的,我愿意提交 PR!

Code of Conduct

  • [x] 我已阅读并同意遵守该项目的 行为准则。

tyql688 avatar May 27 '25 09:05 tyql688