Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加get_status api,fix一个启动时可能遇到的错误 #154

Merged
merged 2 commits into from
Jul 27, 2023
Merged

添加get_status api,fix一个启动时可能遇到的错误 #154

merged 2 commits into from
Jul 27, 2023

Conversation

aowubulao
Copy link
Contributor

  • 添加一个主动获取运行状态的api
  • 修复一个启动时会遇到的问题:
    go-cqhttp在反向ws连接丢失后,默认情况下在这期间bot接收到的消息会在cqhttp的队列中

当Shiro启动连接上cqhttp后,cqhttp会同时将队列的消息推送到Shiro,这里使用HashMap的话就会报ConcurrentModificationException

Pattern pattern = cache.computeIfAbsent(regex, Pattern::compile);

@MisakaTAT MisakaTAT merged commit d51e5f7 into MisakaTAT:main Jul 27, 2023
@MisakaTAT
Copy link
Owner

LGTM, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants