Merge pull request #5801 from murgatroid99/ruby_route_guide_fix

Fix minor issues with Ruby route guide client
pull/4865/merge
Jan Tattermusch 9 years ago
commit 8773076c05
  1. 4
      examples/ruby/route_guide/route_guide_client.rb

@ -38,6 +38,7 @@ lib_dir = File.join(File.dirname(this_dir), 'lib')
$LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
require 'grpc'
require 'multi_json'
require 'route_guide_services'
include Routeguide
@ -115,9 +116,8 @@ def run_record_route(stub, features)
p 'RecordRoute'
p '-----------'
points_on_route = 10 # arbitrary
deadline = points_on_route # as delay b/w each is max 1 second
reqs = RandomRoute.new(features, points_on_route)
resp = stub.record_route(reqs.each, deadline)
resp = stub.record_route(reqs.each)
p "summary: #{resp.inspect}"
end

Loading…
Cancel
Save