Remove unnecessary async task for caching token trading info in main function
This commit is contained in:
@@ -43,7 +43,6 @@ async def main():
|
|||||||
return
|
return
|
||||||
up_token, down_token, market_slug = await fetch_tokens()
|
up_token, down_token, market_slug = await fetch_tokens()
|
||||||
book = OrderBook(up_token, down_token, market_slug)
|
book = OrderBook(up_token, down_token, market_slug)
|
||||||
await asyncio.create_task(cache_token_trading_infos(book))
|
|
||||||
book.start()
|
book.start()
|
||||||
|
|
||||||
await asyncio.sleep(5) # Allow some time for initial order book data
|
await asyncio.sleep(5) # Allow some time for initial order book data
|
||||||
|
|||||||
Reference in New Issue
Block a user