ohlc pub bugfix

This commit is contained in:
Tim
2024-03-14 22:27:17 -04:00
parent b1df816d3f
commit c95115dd38
2 changed files with 5 additions and 2 deletions

View File

@@ -78,7 +78,10 @@ async def main():
proms.append((tx, pool_addr, mirror_addr, mirror_inverted))
except Exception as x:
log.exception(x)
await asyncio.gather(*[await_mirror(*args) for args in proms])
try:
await asyncio.gather(*[await_mirror(*args) for args in proms], return_exceptions=True)
except Exception as x:
log.exception(x)
await asyncio.sleep(delay)

View File

@@ -451,7 +451,7 @@ def pub_ohlc(_series:str, key: OHLCKey, bars: list[NativeOHLC]):
chain_id = current_chain.get().chain_id
return (
f'{chain_id}|{pool_addr}|{period_name(period)}', # channel name is like 0x...|1m
'ohlcs',
'ohlc',
(chain_id, pool_addr, [b.ohlc for b in bars])
)