Skip to content
Permalink
Browse files

fix(frontend): remove duplicate receive

  • Loading branch information...
hanxiao committed Oct 10, 2019
1 parent 73dae6b commit 199a71a6fb1a053d970dd910ce1f39c82541ad27
Showing with 0 additions and 5 deletions.
  1. +0 −5 gnes/service/frontend.py
@@ -131,11 +131,6 @@ def get_response(num_recv, blocked=False):
zmq_client.send_message(self.add_envelope(request, zmq_client), **self.send_recv_kwargs)
self.pending_request += 1

num_recv = max(self.pending_request - self.args.max_pending_request, 1)

# switch to blocked recv when too many pending requests
yield from get_response(num_recv, num_recv > 1)

yield from get_response(self.pending_request, blocked=True)

class ZmqContext:

0 comments on commit 199a71a

Please sign in to comment.
You can’t perform that action at this time.