aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2016-03-18 16:46:21 -0700
committerGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2016-03-18 16:46:21 -0700
commit8bce393aeb1fd806d71701b67f19066d9272d5f1 (patch)
tree9825955e08a11c7b79fb352e8e86f7f79fa9b570 /src/cpp
parentdc6d5a6244232555c2d3392d51c65d11b3f447e8 (diff)
parent7d2c7333398fd05e9901ccea088b0280b6901893 (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.cc3
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);
}