set prefetch count to 1

This commit is contained in:
Giuseppe Privitera 2015-08-12 09:32:02 +01:00
parent a2fdf79d5b
commit 8fdbdae4e7

View File

@ -35,7 +35,7 @@ func main() {
failOnError(err, "Failed to declare a queue")
err = ch.Qos(
3, // prefetch count
1, // prefetch count
0, // prefetch size
false, // global
)