diff options
author | Yang Gao <yangg@google.com> | 2015-05-15 10:25:10 -0700 |
---|---|---|
committer | Yang Gao <yangg@google.com> | 2015-05-15 10:25:10 -0700 |
commit | 280ca17d79e3f3660dbaf3b7557713229ec0a30f (patch) | |
tree | d16b7c132e28c226c25bacd67048466bf0f094c4 /src/cpp/client | |
parent | a89389283f504f989a08058d6a2af2c2217dbfcb (diff) |
resolve comments
Diffstat (limited to 'src/cpp/client')
-rw-r--r-- | src/cpp/client/insecure_credentials.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cpp/client/insecure_credentials.cc b/src/cpp/client/insecure_credentials.cc index 668ea2e873..5ad8784567 100644 --- a/src/cpp/client/insecure_credentials.cc +++ b/src/cpp/client/insecure_credentials.cc @@ -52,7 +52,8 @@ class InsecureCredentialsImpl GRPC_FINAL : public Credentials { target, grpc_channel_create(target.c_str(), &channel_args))); } - bool ApplyToCall(grpc_call* call) GRPC_OVERRIDE { return true; } + // InsecureCredentials should not be applied to a call. + bool ApplyToCall(grpc_call* call) GRPC_OVERRIDE { return false; } SecureCredentials* AsSecureCredentials() GRPC_OVERRIDE { return nullptr; } }; |