diff options
author | murgatroid99 <mlumish@google.com> | 2016-04-19 10:56:01 -0700 |
---|---|---|
committer | murgatroid99 <mlumish@google.com> | 2016-04-19 10:56:01 -0700 |
commit | e264e3984f6a5d8b730760d59930191a3a7c31e8 (patch) | |
tree | 7c3de6d924ae0e57cfcdab3bfee167e23ea8a546 /examples/ruby/route_guide/route_guide_client.rb | |
parent | 7d69ea63c8af9c7be43434993c82f93033343dce (diff) | |
parent | 279681311f61b079a720b7aef424cbe9000d08e8 (diff) |
Merged from master
Diffstat (limited to 'examples/ruby/route_guide/route_guide_client.rb')
-rwxr-xr-x | examples/ruby/route_guide/route_guide_client.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/ruby/route_guide/route_guide_client.rb b/examples/ruby/route_guide/route_guide_client.rb index 715a3c08c5..e7f802c21e 100755 --- a/examples/ruby/route_guide/route_guide_client.rb +++ b/examples/ruby/route_guide/route_guide_client.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -# Copyright 2015-2016, Google Inc. +# Copyright 2015, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -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 |