Use compact async with tuple syntax from py3.9

syseng_tweaks
Tyler Goodlet 2021-05-24 10:09:54 -04:00
parent efd93d058a
commit 319eacd8c1
1 changed files with 4 additions and 8 deletions

View File

@ -319,14 +319,10 @@ async def start_order_mode(
) -> None: ) -> None:
# spawn EMS actor-service # spawn EMS actor-service
async with open_ems( async with (
brokername, open_ems(brokername, symbol) as (book, trades_stream),
symbol, open_order_mode(symbol, chart, book) as order_mode
) as (book, trades_stream), open_order_mode( ):
symbol,
chart,
book,
) as order_mode:
def get_index(time: float): def get_index(time: float):