Skip to content

Commit

Permalink
perf: 修改platform_mgr名称
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Mar 22, 2024
1 parent bd6a32e commit 80258e9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/core/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
class Application:
"""运行时应用对象和上下文"""

im_mgr: im_mgr.PlatformManager = None
platform_mgr: im_mgr.PlatformManager = None

cmd_mgr: cmdmgr.CommandManager = None

Expand Down Expand Up @@ -87,7 +87,7 @@ async def run(self):
try:

tasks = [
asyncio.create_task(self.im_mgr.run()),
asyncio.create_task(self.platform_mgr.run()),
asyncio.create_task(self.ctrl.run())
]

Expand Down
2 changes: 1 addition & 1 deletion pkg/core/stages/build_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async def run(self, ap: app.Application):

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()
Expand Down
2 changes: 1 addition & 1 deletion pkg/pipeline/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async def _check_output(self, query: entities.Query, result: pipeline_entities.S
"""检查输出
"""
if result.user_notice:
await self.ap.im_mgr.send(
await self.ap.platform_mgr.send(
query.message_event,
result.user_notice,
query.adapter
Expand Down
2 changes: 1 addition & 1 deletion pkg/pipeline/respback/respback.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async def process(self, query: core_entities.Query, stage_inst_name: str) -> ent

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
Expand Down

0 comments on commit 80258e9

Please sign in to comment.