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

HandleMessage回调函数消费的问题 #166

Open
freedba opened this issue Nov 21, 2021 · 1 comment
Open

HandleMessage回调函数消费的问题 #166

freedba opened this issue Nov 21, 2021 · 1 comment

Comments

@freedba
Copy link

freedba commented Nov 21, 2021

我在回调函数里设置通道缓冲大小是1,通道缓冲消费完这一条后,立即调用Consumer.Stop(),这时我查看队列的数据少了有20条,请问多消费的消息是不是丢了?谢谢!

@absolute8511
Copy link
Collaborator

stop后就不会ack消息了, 理论上不会丢, 或者关闭自动ack参数, 这样消费完自己ack

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

No branches or pull requests

2 participants