Skip to content

Commit

Permalink
Fixing Ruby examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasnoble committed Feb 11, 2016
1 parent 673781f commit 7cc94e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/ruby/greeter_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
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}"
Expand Down
2 changes: 1 addition & 1 deletion examples/ruby/route_guide/route_guide_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7cc94e9

Please sign in to comment.