streadway / amqp

Go client for AMQP 0.9.1
http://godoc.org/github.com/streadway/amqp
BSD 2-Clause "Simplified" License
4.87k stars 620 forks source link

How to get one message from queue #524

Open demingry opened 2 years ago

demingry commented 2 years ago

Hi, I followed the tutorial examples, but it reads all message from queue once, how can I read only one message from a queue? Appreciate!