fix: 修复 collect_crash_context 中凭据收集的类型不匹配
Sync source to CNB / Sync Git ref (push) Skipped

Credentials::get_all 返回 DashMap,直接 collect 会得到
Vec<(Uuid, Credentials)>,与 CrashContext.credentials 的
Vec<Credentials> 不符,导致编译失败。补上与 analyze_crash 一致的
.map(|credential| credential.1)。
This commit is contained in:
AxTps committed 2026-10-17 18:16:36 +08:00
1 parent ccb96a8cf1
commit 0195cbf5ac
1 file changed
+1
@@ -1297,6 +1297,7 @@ async fn collect_crash_context(
let credentials = Credentials::get_all(&state.pool) let credentials = Credentials::get_all(&state.pool)
.await? .await?
.into_iter() .into_iter()
.map(|credential| credential.1)
.collect::<Vec<_>>(); .collect::<Vec<_>>();
Ok(CrashContext { Ok(CrashContext {
sources, sources,