移除不必要属性,修改一个方法为非协程

This commit is contained in:
UnCLAS-Prommer
2026-02-13 15:37:49 +08:00
parent 14f6fdb2b2
commit 26b8f56251
2 changed files with 4 additions and 6 deletions

View File

@@ -10,6 +10,6 @@ class MessageUtils:
return MessageSequence.from_dict(unpacked_data)
@staticmethod
async def from_MaiSeq_to_db_record_msg(msg: MessageSequence) -> bytes:
def from_MaiSeq_to_db_record_msg(msg: MessageSequence) -> bytes:
dict_representation = msg.to_dict()
return msgpack.packb(dict_representation) # type: ignore