examples/echo_worker.rb in pigato-0.2.8 vs examples/echo_worker.rb in pigato-0.2.9
- old
+ new
@@ -5,9 +5,8 @@
#require "pigato"
worker = Pigato::Worker.new('tcp://localhost:55555', 'echo')
loop do
- reply = nil
- request = worker.recv reply
+ request = worker.recv
worker.reply request
end