aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/ruby/greeter_client.rb
diff options
context:
space:
mode:
authorGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2016-02-11 02:08:17 +0100
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2016-02-11 02:08:17 +0100
commit7cc94e9381ccfb3fd35696fd32b477d5541c890b (patch)
tree6cb8d78bd76ada845b97b91035b713893c65c0b3 /examples/ruby/greeter_client.rb
parent673781fff6e3c0f7b4eb3827987c09811c842fca (diff)
Fixing Ruby examples.
Diffstat (limited to 'examples/ruby/greeter_client.rb')
-rwxr-xr-xexamples/ruby/greeter_client.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ruby/greeter_client.rb b/examples/ruby/greeter_client.rb
index e6cb4bad33..cb4aa195e7 100755
--- a/examples/ruby/greeter_client.rb
+++ b/examples/ruby/greeter_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}"