fix: serialnet_loop 改为直接查 tb_serialnet,不依赖 _registry
This commit is contained in:
@@ -70,6 +70,7 @@ class EDCProtocol:
|
||||
msg = parse_message(data)
|
||||
if msg is None:
|
||||
return
|
||||
logger.info(f"UDP {msg} from {addr}")
|
||||
|
||||
method = msg.get("Method", "")
|
||||
logger.debug(f"UDP {method} from {addr}")
|
||||
@@ -108,6 +109,7 @@ async def handle_tcp_client(reader: asyncio.StreamReader,
|
||||
|
||||
async def process_message(msg: dict):
|
||||
"""处理单条消息并返回响应文本"""
|
||||
logger.info(f"TCP get_rcv {msg} from {addr}")
|
||||
method = msg.get("Method", "")
|
||||
logger.debug(f"TCP {method} from {addr}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user