aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/client/channel_arguments.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpp/client/channel_arguments.cc')
-rw-r--r--src/cpp/client/channel_arguments.cc15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/cpp/client/channel_arguments.cc b/src/cpp/client/channel_arguments.cc
index 87f8349eef..b271650673 100644
--- a/src/cpp/client/channel_arguments.cc
+++ b/src/cpp/client/channel_arguments.cc
@@ -33,21 +33,12 @@
#include <grpc++/channel_arguments.h>
-#include <grpc/grpc_security.h>
+#include "src/core/channel/channel_args.h"
namespace grpc {
-void ChannelArguments::SetSslTargetNameOverride(const grpc::string& name) {
- SetString(GRPC_SSL_TARGET_NAME_OVERRIDE_ARG, name);
-}
-
-grpc::string ChannelArguments::GetSslTargetNameOverride() const {
- for (unsigned int i = 0; i < args_.size(); i++) {
- if (grpc::string(GRPC_SSL_TARGET_NAME_OVERRIDE_ARG) == args_[i].key) {
- return args_[i].value.string;
- }
- }
- return "";
+void ChannelArguments::SetCompressionLevel(grpc_compression_level level) {
+ SetInt(GRPC_COMPRESSION_LEVEL_ARG, level);
}
void ChannelArguments::SetInt(const grpc::string& key, int value) {