Skip to content
Snippets Groups Projects
Commit 0b405d54 authored by David Garcia Quintas's avatar David Garcia Quintas
Browse files

fixed wrong change

parent 303d3082
No related branches found
No related tags found
No related merge requests found
...@@ -194,5 +194,5 @@ int grpc_msg_decompress(grpc_compression_algorithm algorithm, ...@@ -194,5 +194,5 @@ int grpc_msg_decompress(grpc_compression_algorithm algorithm,
break; break;
} }
gpr_log(GPR_ERROR, "invalid compression algorithm %d", algorithm); gpr_log(GPR_ERROR, "invalid compression algorithm %d", algorithm);
return -1; /* to distinguish it from GRPC_COMPRESS_NONE */ return 0;
} }
...@@ -64,7 +64,7 @@ void grpc_byte_buffer_reader_init(grpc_byte_buffer_reader *reader, ...@@ -64,7 +64,7 @@ void grpc_byte_buffer_reader_init(grpc_byte_buffer_reader *reader,
if (is_compressed(reader->buffer_in)) { if (is_compressed(reader->buffer_in)) {
if (grpc_msg_decompress(reader->buffer_in->data.raw.compression, if (grpc_msg_decompress(reader->buffer_in->data.raw.compression,
&reader->buffer_in->data.raw.slice_buffer, &reader->buffer_in->data.raw.slice_buffer,
&decompressed_slices_buffer) < 0) { &decompressed_slices_buffer) == 0) {
gpr_log(GPR_ERROR, gpr_log(GPR_ERROR,
"Unexpected error decompressing data for algorithm with enum " "Unexpected error decompressing data for algorithm with enum "
"value '%d'. Reading data as if it were uncompressed.", "value '%d'. Reading data as if it were uncompressed.",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment