Эх сурвалжийг харах

Merge pull request #7838 from teodor-pripoae/fix-example-in-ruby-readme

Fix example in ruby readme
Michael Lumish 9 жил өмнө
parent
commit
2a78d3d961

+ 1 - 1
src/ruby/README.md

@@ -59,7 +59,7 @@ Directory structure is the layout for [ruby extensions][]
 - bin: example gRPC clients and servers, e.g,
 - bin: example gRPC clients and servers, e.g,
 
 
   ```ruby
   ```ruby
-  stub = Math::Math::Stub.new('my.test.math.server.com:8080')
+  stub = Math::Math::Stub.new('my.test.math.server.com:8080', :this_channel_is_insecure)
   req = Math::DivArgs.new(dividend: 7, divisor: 3)
   req = Math::DivArgs.new(dividend: 7, divisor: 3)
   GRPC.logger.info("div(7/3): req=#{req.inspect}")
   GRPC.logger.info("div(7/3): req=#{req.inspect}")
   resp = stub.div(req)
   resp = stub.div(req)