AskaEth
61c8a4eff9
refactor(download): 纯搬移为 M289 腾出行数余量(config 单测 / engine 只读查询面)
两个文件都是 400 行零余量的硬线,本 mission 要加超时字段与失速诊断,先纯搬移:
* `config.rs` 的 `#[cfg(test)] mod tests`(174 行)→ `config/tests.rs`,
原文件用 `#[cfg(test)] #[path = "config/tests.rs"] mod tests;` 声明;
* `engine.rs` 的七个只读 getter(`config` / `concurrency_probe` / `client` /
`region` / `mirrors` / `health` / `cache`,44 行)→ `engine/inspect.rs`。
逐字节未改:搬移块去缩进后与 HEAD 原文 `diff` 均为 exit 0。
行为零变化(同一批测试仍全绿);新文件都在 `crates/core/src/download/**` 内,
外部路径(`download::config::EngineConfig` 等)不变。
2026-11-12 23:24:18 +08:00
..
2026-11-12 23:24:18 +08:00
2026-11-12 18:44:51 +08:00
2026-11-09 07:56:32 +08:00