perf: 修改platform_mgr名称

This commit is contained in:
RockChinQ 2024-03-22 17:09:43 +08:00
parent bd6a32e08e
commit 80258e9182
4 changed files with 5 additions and 5 deletions

View File

@ -21,7 +21,7 @@ from ..utils import version as version_mgr, proxy as proxy_mgr
class Application:
"""运行时应用对象和上下文"""
im_mgr: im_mgr.PlatformManager = None
platform_mgr: im_mgr.PlatformManager = None
cmd_mgr: cmdmgr.CommandManager = None
@ -87,7 +87,7 @@ class Application:
try:
tasks = [
asyncio.create_task(self.im_mgr.run()),
asyncio.create_task(self.platform_mgr.run()),
asyncio.create_task(self.ctrl.run())
]

View File

@ -86,7 +86,7 @@ class BuildAppStage(stage.BootingStage):
im_mgr_inst = im_mgr.PlatformManager(ap=ap)
await im_mgr_inst.initialize()
ap.im_mgr = im_mgr_inst
ap.platform_mgr = im_mgr_inst
stage_mgr = stagemgr.StageManager(ap)
await stage_mgr.initialize()

View File

@ -68,7 +68,7 @@ class Controller:
"""检查输出
"""
if result.user_notice:
await self.ap.im_mgr.send(
await self.ap.platform_mgr.send(
query.message_event,
result.user_notice,
query.adapter

View File

@ -29,7 +29,7 @@ class SendResponseBackStage(stage.PipelineStage):
await asyncio.sleep(random_delay)
await self.ap.im_mgr.send(
await self.ap.platform_mgr.send(
query.message_event,
query.resp_message_chain,
adapter=query.adapter