Skip to content

Commit

Permalink
switch back to method
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenc-pace committed Oct 3, 2023
1 parent 649eb9e commit 04cbe32
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nameko_grpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ def stop(self):
self._channel.stop()
self._channel = None

@property
def channel(self):
if self._channel is None:
self._start_channel()
Expand All @@ -185,7 +184,7 @@ def timeout(self, send_stream, response_stream, deadline):
time.sleep(0.001)

def invoke(self, request_headers, request, timeout):
send_stream, response_stream = self.channel.send_request(request_headers)
send_stream, response_stream = self.channel().send_request(request_headers)
if timeout:
self.spawn_thread(
target=self.timeout,
Expand Down

0 comments on commit 04cbe32

Please sign in to comment.