Only load 4 ib requests worth of bars on windows...

win_fixes
wattygetlood 2021-09-28 18:40:56 -04:00 committed by Tyler Goodlet
parent 09fd8ef742
commit a270b2e033
1 changed files with 5 additions and 0 deletions

View File

@ -1157,6 +1157,11 @@ async def backfill_bars(
https://github.com/pikers/piker/issues/128 https://github.com/pikers/piker/issues/128
""" """
if platform.system() == 'Windows':
log.warning(
'Decreasing history query count to 4 since, windows...')
count = 4
out, fails = await get_bars(sym) out, fails = await get_bars(sym)
if out is None: if out is None:
raise RuntimeError("Could not pull currrent history?!") raise RuntimeError("Could not pull currrent history?!")