Procházet zdrojové kódy

Updated ruby interop client with keyword argument changes

murgatroid99 před 9 roky
rodič
revize
fb2877d4c8
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      src/ruby/pb/test/client.rb

+ 3 - 1
src/ruby/pb/test/client.rb

@@ -114,7 +114,9 @@ def create_stub(opts)
   if opts.secure
     creds = ssl_creds(opts.use_test_ca)
     stub_opts = {
-      GRPC::Core::Channel::SSL_TARGET => opts.host_override
+      channel_args: {
+        GRPC::Core::Channel::SSL_TARGET => opts.host_override
+      }
     }
 
     # Add service account creds if specified