diff options
author | Tim Emiola <temiola@google.com> | 2015-10-28 00:17:14 -0700 |
---|---|---|
committer | Tim Emiola <temiola@google.com> | 2015-10-28 00:17:14 -0700 |
commit | 43a7e4e6ed33e1341394afdbe52ed00cdbe4b311 (patch) | |
tree | 53d9024f21fd1308d2fa9302c3715793e54376ff /src/ruby/lib | |
parent | 9332ea6af55265b7f95fd6ca1a4197e852b926eb (diff) |
Ruby wrapping of core credentials API change.
Diffstat (limited to 'src/ruby/lib')
-rw-r--r-- | src/ruby/lib/grpc/generic/client_stub.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ruby/lib/grpc/generic/client_stub.rb b/src/ruby/lib/grpc/generic/client_stub.rb index b8e33ad295..90aaa026ec 100644 --- a/src/ruby/lib/grpc/generic/client_stub.rb +++ b/src/ruby/lib/grpc/generic/client_stub.rb @@ -51,7 +51,9 @@ module GRPC end kw['grpc.primary_user_agent'] = "grpc-ruby/#{VERSION}" return Core::Channel.new(host, kw) if creds.nil? - fail(TypeError, '!Credentials') unless creds.is_a?(Core::Credentials) + unless creds.is_a?(Core::ChannelCredentials) + fail(TypeError, '!ChannelCredentials') + end Core::Channel.new(host, kw, creds) end @@ -106,7 +108,7 @@ module GRPC # @param q [Core::CompletionQueue] used to wait for events # @param channel_override [Core::Channel] a pre-created channel # @param timeout [Number] the default timeout to use in requests - # @param creds [Core::Credentials] the channel + # @param creds [Core::ChannelCredentials] the channel credentials # @param update_metadata a func that updates metadata as described above # @param kw [KeywordArgs]the channel arguments def initialize(host, q, |