mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-03 01:40:21 +08:00
refactor: 移除独立 hub/proxy/executor/gateway crate,统一为 gateway tunnel 架构
- 删除 aether-hub、aether-proxy 独立项目及其 Dockerfile/配置 - 删除 crates/aether-executor 和 crates/aether-gateway 全部模块 - 新增 apps/ 目录作为应用入口 - 将 hub 概念重构为 gateway tunnel transport - 将 executor 重构为 execution runtime - 新增 tunnel.rs 合约定义和 testkit tunnel/execution_runtime 模块 - 更新 Python 服务层和测试适配新架构命名
This commit is contained in:
@@ -178,7 +178,7 @@ impl ProxyNodeWriteRepository for InMemoryProxyNodeRepository {
|
||||
};
|
||||
let event_detail = mutation.detail.clone().unwrap_or_else(|| {
|
||||
format!(
|
||||
"[hub_node_status] conn_count={}",
|
||||
"[tunnel_node_status] conn_count={}",
|
||||
i32::max(mutation.conn_count, 0)
|
||||
)
|
||||
});
|
||||
@@ -318,7 +318,7 @@ mod tests {
|
||||
assert_eq!(stale_events[0].event_type, "disconnected");
|
||||
assert_eq!(
|
||||
stale_events[0].detail.as_deref(),
|
||||
Some("[stale_ignored] [hub_node_status] conn_count=0")
|
||||
Some("[stale_ignored] [tunnel_node_status] conn_count=0")
|
||||
);
|
||||
|
||||
let updated = repository
|
||||
@@ -344,7 +344,7 @@ mod tests {
|
||||
assert_eq!(events[0].created_at_unix_secs, Some(1_800_000_000));
|
||||
assert_eq!(
|
||||
events[0].detail.as_deref(),
|
||||
Some("[hub_node_status] conn_count=0")
|
||||
Some("[tunnel_node_status] conn_count=0")
|
||||
);
|
||||
|
||||
let found = repository
|
||||
|
||||
@@ -278,7 +278,7 @@ impl ProxyNodeWriteRepository for SqlxProxyNodeRepository {
|
||||
};
|
||||
let event_detail = mutation.detail.clone().unwrap_or_else(|| {
|
||||
format!(
|
||||
"[hub_node_status] conn_count={}",
|
||||
"[tunnel_node_status] conn_count={}",
|
||||
i32::max(mutation.conn_count, 0)
|
||||
)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user