Logic factoring

kivy_mainline_and_py3.8
Tyler Goodlet 2018-12-29 16:00:18 -05:00
parent 1866dd1812
commit b4fad3f6a9
1 changed files with 2 additions and 5 deletions

View File

@ -147,11 +147,8 @@ async def fan_out_to_chans(
"""Get quotes for current symbol subscription set. """Get quotes for current symbol subscription set.
""" """
symbols = list(symbols2chans.keys()) symbols = list(symbols2chans.keys())
if symbols: # subscription can be changed at any time
# subscription can be changed at any time return await get_quotes(symbols) if symbols else ()
return await get_quotes(symbols)
else:
return ()
async for quotes in stream_quotes( async for quotes in stream_quotes(
feed.mod, request, rate, feed.mod, request, rate,