优化代码
This commit is contained in:
@@ -21,7 +21,7 @@ async def start_bn_future_order_consumer(account_id, api_key, api_secret):
|
||||
|
||||
async def send_msg(msg):
|
||||
logger.info(f"send to kafka: {msg}")
|
||||
await kafka_service.send_to_kafka("binance_future_order_update", json.dumps(msg))
|
||||
await kafka_service.send_to_kafka("binance_future_order_update", json.dumps(msg),key="DEFAULT",send_now=True)
|
||||
logger.info(f"send to kafka success: {msg}")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user