Skip to content

Commit 7782ad0

Browse files
author
Michael Klishin
committed
Make the code match the narrative
Spotted by the Mr. Eagle Eye, @videlalvaro.
1 parent ac4762c commit 7782ad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/worker.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
q.subscribe(:manual_ack => true, :block => true) do |delivery_info, properties, body|
1717
puts " [x] Received '#{body}'"
1818
# imitate some work
19-
sleep 1.0
19+
sleep body.count(".").to_i
2020
puts " [x] Done"
2121
ch.ack(delivery_info.delivery_tag)
2222
end

0 commit comments

Comments
 (0)