Skip to content

Commit

Permalink
s/maybe_compression_level.compression_level/maybe_compression_level.l…
Browse files Browse the repository at this point in the history
…evel
  • Loading branch information
dgquintas committed Jun 8, 2016
1 parent 30fb536 commit 8ba42be
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/grpc/impl/codegen/grpc_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions src/core/lib/surface/call.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion src/objective-c/GRPCClient/private/GRPCWrappedCall.m
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ - (instancetype)initWithMetadata:(NSDictionary *)metadata handler:(void (^)())ha
_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;
Expand Down
2 changes: 1 addition & 1 deletion test/core/end2end/tests/compressed_payload.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8ba42be

Please sign in to comment.