Fixing Ruby examples.

pull/5192/head
Nicolas "Pixel" Noble 9 years ago
parent 673781fff6
commit 7cc94e9381
  1. 2
      examples/ruby/greeter_client.rb
  2. 2
      examples/ruby/route_guide/route_guide_client.rb

@ -41,7 +41,7 @@ require 'grpc'
require 'helloworld_services'
def main
stub = Helloworld::Greeter::Stub.new('localhost:50051')
stub = Helloworld::Greeter::Stub.new('localhost:50051', :this_channel_is_insecure)
user = ARGV.size > 0 ? ARGV[0] : 'world'
message = stub.say_hello(Helloworld::HelloRequest.new(name: user)).message
p "Greeting: #{message}"

@ -147,7 +147,7 @@ def run_route_chat(stub)
end
def main
stub = RouteGuide::Stub.new('localhost:50051')
stub = RouteGuide::Stub.new('localhost:50051', :this_channel_is_insecure)
run_get_feature(stub)
run_list_features(stub)
run_route_chat(stub)

Loading…
Cancel
Save