Skip to content

Commit

Permalink
Avoid "n" as name since it conflicts with pdb
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Sep 6, 2021
1 parent b9ee099 commit 85fd0a7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions piker/ui/_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -1708,7 +1708,6 @@ async def display_symbol_data(
tick_throttle=_clear_throttle_rate,

) as feed,
trio.open_nursery() as n,
):

ohlcv: ShmArray = feed.shm
Expand Down Expand Up @@ -1800,11 +1799,11 @@ async def display_symbol_data(

async with (

trio.open_nursery() as n,
trio.open_nursery() as ln,

):
# load initial fsp chain (otherwise known as "indicators")
n.start_soon(
ln.start_soon(
spawn_fsps,
linkedsplits,
fsp_conf,
Expand All @@ -1816,15 +1815,15 @@ async def display_symbol_data(
)

# start graphics update loop(s)after receiving first live quote
n.start_soon(
ln.start_soon(
chart_from_quotes,
chart,
feed.stream,
ohlcv,
wap_in_history,
)

n.start_soon(
ln.start_soon(
check_for_new_bars,
feed,
ohlcv,
Expand Down

0 comments on commit 85fd0a7

Please sign in to comment.