s/maybe_compression_level.compression_level/maybe_compression_level.level

pull/6481/head
David Garcia Quintas 9 years ago
parent 30fb536053
commit 8ba42bec90
  1. 2
      include/grpc/impl/codegen/grpc_types.h
  2. 3
      src/core/lib/surface/call.c
  3. 2
      src/objective-c/GRPCClient/private/GRPCWrappedCall.m
  4. 2
      test/core/end2end/tests/compressed_payload.c

@ -338,7 +338,7 @@ typedef struct grpc_op {
* Otherwise, \a compression_level won't be considered */
struct {
uint8_t is_set;
grpc_compression_level compression_level;
grpc_compression_level level;
} maybe_compression_level;
} send_initial_metadata;
grpc_byte_buffer *send_message;

@ -1370,8 +1370,7 @@ static grpc_call_error call_start_batch(grpc_exec_ctx *exec_ctx,
bool level_set = false;
if (op->data.send_initial_metadata.maybe_compression_level.is_set) {
effective_compression_level =
op->data.send_initial_metadata.maybe_compression_level
.compression_level;
op->data.send_initial_metadata.maybe_compression_level.level;
level_set = true;
} else {
const grpc_compression_options copts =

@ -73,7 +73,7 @@
_op.data.send_initial_metadata.count = metadata.count;
_op.data.send_initial_metadata.metadata = metadata.grpc_metadataArray;
_op.data.send_initial_metadata.maybe_compression_level.is_set = false;
_op.data.send_initial_metadata.maybe_compression_level.compression_level = 0;
_op.data.send_initial_metadata.maybe_compression_level.level = 0;
_handler = handler;
}
return self;

@ -379,7 +379,7 @@ static void request_with_payload_template(
op->data.send_initial_metadata.count = 0;
if (set_server_level) {
op->data.send_initial_metadata.maybe_compression_level.is_set = true;
op->data.send_initial_metadata.maybe_compression_level.compression_level =
op->data.send_initial_metadata.maybe_compression_level.level =
server_compression_level;
}
op->flags = 0;

Loading…
Cancel
Save