remove while self.response is None
loop
`self.connection.process_data_events(time_limit=None)` blocks, until response is ready.
This commit is contained in:
parent
5e427cda94
commit
3bed207b52
@ -37,8 +37,7 @@ class FibonacciRpcClient(object):
|
||||
correlation_id=self.corr_id,
|
||||
),
|
||||
body=str(n))
|
||||
while self.response is None:
|
||||
self.connection.process_data_events(None)
|
||||
self.connection.process_data_events(time_limit=None)
|
||||
return int(self.response)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user