There was an error while loading. Please reload this page.
1 parent 01af1f7 commit 76cb038Copy full SHA for 76cb038
ruby/worker.rb
@@ -16,7 +16,7 @@
16
puts " [*] Waiting for messages. To exit press CTRL+C"
17
18
channel.prefetch(1)
19
- queue.subscribe do |header, body|
+ queue.subscribe(:ack => true) do |header, body|
20
puts " [x] Received #{body}"
21
EM.add_timer(body.count(".")) do
22
puts " [x] Done"
0 commit comments