Skip to content

Commit 76cb038

Browse files
author
Jakub Stastny aka botanicus
committed
Whops, I forgot {:ack => true}.
1 parent 01af1f7 commit 76cb038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/worker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
puts " [*] Waiting for messages. To exit press CTRL+C"
1717

1818
channel.prefetch(1)
19-
queue.subscribe do |header, body|
19+
queue.subscribe(:ack => true) do |header, body|
2020
puts " [x] Received #{body}"
2121
EM.add_timer(body.count(".")) do
2222
puts " [x] Done"

0 commit comments

Comments
 (0)