feat: 更新 handle_config_reload 方法文档,明确配置热重载的行为和通知机制
This commit is contained in:
@@ -222,7 +222,11 @@ class PluginRuntimeManager(
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
async def handle_config_reload(self) -> None:
|
async def handle_config_reload(self) -> None:
|
||||||
"""处理主配置热重载后的插件配置通知。"""
|
"""响应全局配置热重载,并向当前已注册插件重新推送各自配置。
|
||||||
|
|
||||||
|
该回调不负责重载插件运行时本身;它只在 config_manager 完成配置重载后,
|
||||||
|
遍历所有已注册插件并触发一次 plugin.config_updated 通知。
|
||||||
|
"""
|
||||||
if not self._started:
|
if not self._started:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user