重构代码以使用 mofox_wire 替代 mofox_bus,更新相关文档和示例
This commit is contained in:
@@ -11,7 +11,7 @@ CoreSink 统一管理器
|
||||
4. 提供统一的消息发送接口
|
||||
|
||||
架构说明(2025-11 重构):
|
||||
- 集成 mofox_bus.MessageRuntime 作为消息路由中心
|
||||
- 集成 mofox_wire.MessageRuntime 作为消息路由中心
|
||||
- 使用 @runtime.on_message() 装饰器注册消息处理器
|
||||
- 利用 before_hook/after_hook/error_hook 处理前置/后置/错误逻辑
|
||||
- 简化消息处理链条,提高可扩展性
|
||||
@@ -24,7 +24,7 @@ import contextlib
|
||||
import multiprocessing as mp
|
||||
from typing import TYPE_CHECKING, Any, Awaitable, Callable, Dict, Optional
|
||||
|
||||
from mofox_bus import (
|
||||
from mofox_wire import (
|
||||
InProcessCoreSink,
|
||||
MessageEnvelope,
|
||||
MessageRuntime,
|
||||
|
||||
Reference in New Issue
Block a user