Skip to content

Commit

Permalink
Merge pull request #60 from zheins/await-run-commands
Browse files Browse the repository at this point in the history
Proper coroutine await data
  • Loading branch information
zheins authored Nov 30, 2020
2 parents 5bc7010 + 52c2ccd commit 5ea8686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evolver/evolver_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ async def broadcast(commands_in_queue):
if config['recurring']:
command_queue.append({'param': param, 'value': config['value'], 'type':RECURRING})
# Always run commands so that IMMEDIATE requests occur. RECURRING requests only happen if no commands in queue
broadcast_data['data'] = run_commands()
broadcast_data['data'] = await run_commands()
broadcast_data['config'] = evolver_conf['experimental_params']
if not commands_in_queue:
print('Broadcasting data', flush = True)
Expand Down

0 comments on commit 5ea8686

Please sign in to comment.