diff options
author | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2016-03-18 16:46:21 -0700 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2016-03-18 16:46:21 -0700 |
commit | 8bce393aeb1fd806d71701b67f19066d9272d5f1 (patch) | |
tree | 9825955e08a11c7b79fb352e8e86f7f79fa9b570 /src/cpp | |
parent | dc6d5a6244232555c2d3392d51c65d11b3f447e8 (diff) | |
parent | 7d2c7333398fd05e9901ccea088b0280b6901893 (diff) |
Merge pull request #5819 from dgquintas/compression_levels
Implemented compression level algorithms properly
Diffstat (limited to 'src/cpp')
-rw-r--r-- | src/cpp/server/server_context.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cpp/server/server_context.cc b/src/cpp/server/server_context.cc index eb49b21037..5d12ce2ecf 100644 --- a/src/cpp/server/server_context.cc +++ b/src/cpp/server/server_context.cc @@ -43,6 +43,7 @@ #include <grpc/support/log.h> #include "src/core/channel/compress_filter.h" +#include "src/core/surface/call.h" #include "src/cpp/common/create_auth_context.h" namespace grpc { @@ -197,7 +198,7 @@ bool ServerContext::IsCancelled() const { void ServerContext::set_compression_level(grpc_compression_level level) { const grpc_compression_algorithm algorithm_for_level = - grpc_compression_algorithm_for_level(level); + grpc_call_compression_for_level(call_, level); set_compression_algorithm(algorithm_for_level); } |