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

RabbitListener can not Manual ack calls are supported #44

Open
maringpcoder opened this issue Jul 4, 2023 · 0 comments
Open

RabbitListener can not Manual ack calls are supported #44

maringpcoder opened this issue Jul 4, 2023 · 0 comments

Comments

@maringpcoder
Copy link

In RabbitListener I see the following

go func() {
			for d := range msg {

				if err := q.handler.Consume(string(d.Body)); err != nil {
					logx.Errorf("Error on consuming: %s, error: %v", string(d.Body), err)
				}
			}
		}()

Is it possible to call AutoAck manually like this:

go func() {
			for d := range msg {

				if err := q.handler.Consume(string(d.Body)); err != nil {
					logx.Errorf("Error on consuming: %s, error: %v", string(d.Body), err)
				}else if !que.AutoAck {
					d.Ack(que.AutoAck)
				}
			}
		}()
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

1 participant