Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(frontend): remove duplicate receive
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Oct 10, 2019
1 parent 73dae6b commit 199a71a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions gnes/service/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 199a71a

Please sign in to comment.