examples/echo_client.rb in pigato-0.1.9 vs examples/echo_client.rb in pigato-0.2.0

- old
+ new

@@ -7,10 +7,10 @@ client = Pigato::Client.new('tcp://localhost:55555') requests = 1000 d1 = Time.now requests.times do |i| begin - client.send('echo', 'Hello world') + client.request('echo', 'Hello world') end end d2 = Time.now puts "#{requests} requests/replies processed (#{(d2 - d1) * 1000} milliseconds)"