fix: 修复全部 medium/low 优先级问题

- cache/daemon: mtime 比较从 f64(secs) 改为 u64(nanos),避免浮点误差丢失变更
- transport: Unix 启动 daemon 前调用 setsid(),使其脱离控制终端防止 SIGHUP
- daemon/mod: 删除对已废弃 watcher 模块的引用
- watcher.rs: 删除全量死代码文件(功能已内联至 daemon/mod.rs)
- query: find_msg_tables 实际按 max_ts 降序排序(原注释有排序但无实现)
- scanner: 移除三平台 scan_memory 中的 dedup_by(search_pattern 已全局去重)
- watch: Windows 平台返回明确错误而非静默失败
- CI: cargo build 增加 --locked 确保使用 Cargo.lock 版本
This commit is contained in:
jackwener
2026-04-16 15:12:33 +08:00
parent 113e1d2907
commit 8bfea8869e
10 changed files with 46 additions and 195 deletions
-2
View File
@@ -87,8 +87,6 @@ pub fn scan_keys(db_dir: &Path) -> Result<Vec<KeyEntry>> {
for (start, end) in &regions {
scan_region(&mut mem_file, *start, *end, &mut raw_keys);
}
// 去重
raw_keys.dedup_by(|a, b| a.0 == b.0 && a.1 == b.1);
eprintln!("找到 {} 个候选密钥", raw_keys.len());
let mut entries = Vec::new();
-2
View File
@@ -193,8 +193,6 @@ fn scan_memory(task: mach_port_t) -> Result<Vec<(String, String)>> {
addr = addr.saturating_add(size);
}
// 去重
results.dedup_by(|a, b| a.0 == b.0 && a.1 == b.1);
Ok(results)
}
-1
View File
@@ -130,7 +130,6 @@ fn scan_memory(process: HANDLE) -> Result<Vec<(String, String)>> {
}
}
results.dedup_by(|a, b| a.0 == b.0 && a.1 == b.1);
Ok(results)
}