فهرست منبع

Removed spurious changes.

David Garcia Quintas 10 سال پیش
والد
کامیت
b910170667
2فایلهای تغییر یافته به همراه0 افزوده شده و 4 حذف شده
  1. 0 3
      src/core/channel/compress_filter.c
  2. 0 1
      src/core/transport/transport.h

+ 0 - 3
src/core/channel/compress_filter.c

@@ -114,9 +114,6 @@ static void process_send_ops(grpc_call_element *elem,
     switch (sop->type) {
     switch (sop->type) {
       case GRPC_OP_BEGIN_MESSAGE:
       case GRPC_OP_BEGIN_MESSAGE:
         calld->remaining_slice_bytes = sop->data.begin_message.length;
         calld->remaining_slice_bytes = sop->data.begin_message.length;
-        /* TODO(dgq): we may want to get rid of the flags mechanism to have
-         * exceptions to compression: we can rely solely on metadata to set NONE
-         * as the compression algorithm */
         if (sop->data.begin_message.flags & GRPC_WRITE_NO_COMPRESS) {
         if (sop->data.begin_message.flags & GRPC_WRITE_NO_COMPRESS) {
           calld->has_compression_algorithm = 1;  /* GPR_TRUE */
           calld->has_compression_algorithm = 1;  /* GPR_TRUE */
           calld->compression_algorithm = GRPC_COMPRESS_NONE;
           calld->compression_algorithm = GRPC_COMPRESS_NONE;

+ 0 - 1
src/core/transport/transport.h

@@ -69,7 +69,6 @@ typedef struct grpc_transport_op {
 
 
   grpc_stream_op_buffer *send_ops;
   grpc_stream_op_buffer *send_ops;
   int is_last_send;
   int is_last_send;
-  int dont_compress;
   void (*on_done_send)(void *user_data, int success);
   void (*on_done_send)(void *user_data, int success);
   void *send_user_data;
   void *send_user_data;