Skip to content
Snippets Groups Projects
Commit 7cc94e93 authored by Nicolas "Pixel" Noble's avatar Nicolas "Pixel" Noble
Browse files

Fixing Ruby examples.

parent 673781ff
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ require 'grpc' ...@@ -41,7 +41,7 @@ require 'grpc'
require 'helloworld_services' require 'helloworld_services'
def main 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' user = ARGV.size > 0 ? ARGV[0] : 'world'
message = stub.say_hello(Helloworld::HelloRequest.new(name: user)).message message = stub.say_hello(Helloworld::HelloRequest.new(name: user)).message
p "Greeting: #{message}" p "Greeting: #{message}"
... ...
......
...@@ -147,7 +147,7 @@ def run_route_chat(stub) ...@@ -147,7 +147,7 @@ def run_route_chat(stub)
end end
def main def main
stub = RouteGuide::Stub.new('localhost:50051') stub = RouteGuide::Stub.new('localhost:50051', :this_channel_is_insecure)
run_get_feature(stub) run_get_feature(stub)
run_list_features(stub) run_list_features(stub)
run_route_chat(stub) run_route_chat(stub)
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment