Merge pull request #5719 from soltanmm/morechan

Remove unnecessary safety-refs
pull/5725/head
Masood Malekghassemi 9 years ago
commit fb9de3e618
  1. 1
      src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx.pxi
  2. 1
      src/python/grpcio/grpc/_cython/_cygrpc/server.pyx.pxi

@ -95,7 +95,6 @@ cdef class Channel:
self, grpc_connectivity_state last_observed_state, self, grpc_connectivity_state last_observed_state,
Timespec deadline not None, CompletionQueue queue not None, tag): Timespec deadline not None, CompletionQueue queue not None, tag):
cdef OperationTag operation_tag = OperationTag(tag) cdef OperationTag operation_tag = OperationTag(tag)
operation_tag.references = [self, queue]
cpython.Py_INCREF(operation_tag) cpython.Py_INCREF(operation_tag)
grpc_channel_watch_connectivity_state( grpc_channel_watch_connectivity_state(
self.c_channel, last_observed_state, deadline.c_time, self.c_channel, last_observed_state, deadline.c_time,

@ -106,7 +106,6 @@ cdef class Server:
self.is_shutting_down = True self.is_shutting_down = True
operation_tag = OperationTag(tag) operation_tag = OperationTag(tag)
operation_tag.shutting_down_server = self operation_tag.shutting_down_server = self
operation_tag.references.extend([self, queue])
cpython.Py_INCREF(operation_tag) cpython.Py_INCREF(operation_tag)
grpc_server_shutdown_and_notify( grpc_server_shutdown_and_notify(
self.c_server, queue.c_completion_queue, self.c_server, queue.c_completion_queue,

Loading…
Cancel
Save