Add garbage collection after clearing hedged anchors and orders in refresh_market_data
This commit is contained in:
@@ -59,6 +59,7 @@ async def refresh_market_data():
|
||||
state.hedged_anchors.clear()
|
||||
state.processing_anchors.clear()
|
||||
state.hedged_orders.clear()
|
||||
gc.collect()
|
||||
|
||||
logger.info(
|
||||
f"✅ Market Updated: Up={up_token[:10]}... Down={down_token[:10]}..."
|
||||
|
||||
Reference in New Issue
Block a user