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

How to delete message after ack? #428

Open
yl opened this issue Mar 20, 2024 · 1 comment
Open

How to delete message after ack? #428

yl opened this issue Mar 20, 2024 · 1 comment

Comments

@yl
Copy link

yl commented Mar 20, 2024

No description provided.

@davidroman0O
Copy link

davidroman0O commented Apr 15, 2024

Your issue has zero description so it is quite hard to help you

If you are using AMQP, you can avoid a requeue of a nacked message:

	amqpConfig := amqp.NewDurableQueueConfig(h.amqpURI)
	amqpConfig.Consume.NoRequeueOnNack = true

A message got a Acked channel that allow you to wait for Nacked or Acked, you have an example there https://github.com/ThreeDotsLabs/watermill/blob/master/docs/content/docs/message/receiving-ack.go#L18

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