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

async messageCount continue 计算数量 #5265

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

tw2066
Copy link
Contributor

@tw2066 tw2066 commented Dec 28, 2022

while 循环 中的continue 计算了messageCount数量

@limingxinleo
Copy link
Member

这样会有什么问题么?

@tw2066
Copy link
Contributor Author

tw2066 commented Dec 28, 2022

队列中没有消息, messageCount数量也会增加

@huangdijia
Copy link
Member

这样调整和原来的效果不是一样的吗?

@limingxinleo
Copy link
Member

队列中没有消息, messageCount数量也会增加

也会增加。。但是没啥影响吧,反而如果一直没消息,也能自己在一定时间后重启。。。

@tw2066
Copy link
Contributor Author

tw2066 commented Dec 28, 2022

重启没什么影响,messageCount含义有点歧义。QueueLength事件也有影响

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.

None yet

3 participants