From 19b4feaee7ebac556e10179abdc28b7efb07568f Mon Sep 17 00:00:00 2001 From: Muxi Yan Date: Fri, 19 Jan 2018 12:22:24 -0800 Subject: Update surface API in cython pxi --- src/python/grpcio/grpc/_cython/_cygrpc/grpc.pxi | 5 ----- src/python/grpcio/grpc/_cython/_cygrpc/operation.pyx.pxi | 1 - 2 files changed, 6 deletions(-) (limited to 'src') diff --git a/src/python/grpcio/grpc/_cython/_cygrpc/grpc.pxi b/src/python/grpcio/grpc/_cython/_cygrpc/grpc.pxi index 069804e93c..30253fc20c 100644 --- a/src/python/grpcio/grpc/_cython/_cygrpc/grpc.pxi +++ b/src/python/grpcio/grpc/_cython/_cygrpc/grpc.pxi @@ -276,15 +276,10 @@ cdef extern from "grpc/grpc.h": uint8_t is_set grpc_compression_level level - ctypedef struct grpc_op_send_initial_metadata_maybe_stream_compression_level: - uint8_t is_set - grpc_stream_compression_level level - ctypedef struct grpc_op_data_send_initial_metadata: size_t count grpc_metadata *metadata grpc_op_send_initial_metadata_maybe_compression_level maybe_compression_level - grpc_op_send_initial_metadata_maybe_stream_compression_level maybe_stream_compression_level ctypedef struct grpc_op_data_send_status_from_server: size_t trailing_metadata_count diff --git a/src/python/grpcio/grpc/_cython/_cygrpc/operation.pyx.pxi b/src/python/grpcio/grpc/_cython/_cygrpc/operation.pyx.pxi index 3c91abf722..239d0f3f95 100644 --- a/src/python/grpcio/grpc/_cython/_cygrpc/operation.pyx.pxi +++ b/src/python/grpcio/grpc/_cython/_cygrpc/operation.pyx.pxi @@ -40,7 +40,6 @@ cdef class SendInitialMetadataOperation(Operation): self.c_op.data.send_initial_metadata.metadata = self._c_initial_metadata self.c_op.data.send_initial_metadata.count = self._c_initial_metadata_count self.c_op.data.send_initial_metadata.maybe_compression_level.is_set = 0 - self.c_op.data.send_initial_metadata.maybe_stream_compression_level.is_set = 0 cdef void un_c(self): _release_c_metadata( -- cgit v1.2.3