Don't shield ems feed; enact remote cancels

cached_feeds
Tyler Goodlet 2021-03-23 08:34:27 -04:00
parent 2046fe293a
commit 17d3e7a9e2
1 changed files with 13 additions and 14 deletions

View File

@ -268,6 +268,7 @@ async def exec_loop(
*trio.open_memory_channel(100), *trio.open_memory_channel(100),
_buys={}, _buys={},
_sells={}, _sells={},
_reqids={}, _reqids={},
) )
@ -284,9 +285,7 @@ async def exec_loop(
# return control to parent task # return control to parent task
task_status.started((first_quote, feed, client)) task_status.started((first_quote, feed, client))
# shield this field so the remote brokerd does not get cancelled
stream = feed.stream stream = feed.stream
with stream.shield():
async with trio.open_nursery() as n: async with trio.open_nursery() as n:
n.start_soon( n.start_soon(
execute_triggers, execute_triggers,