mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
fix: integrate logging hardening with rebased main (F3 + tauri plugins)
Rebasing onto post-F3 main surfaced two spots the auto-merge left inconsistent: - profile_handler UpdateIdentityKey path: thread ctx into the writeServiceError call (the signature gained a context param in the server logging change) - identity-pin store lookup: drop a needless borrow flagged by clippy Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -241,7 +241,7 @@ pub fn get_identity_pin(
|
||||
.store(IDENTITY_PINS_STORE)
|
||||
.map_err(|e| format!("failed to open identity pins store: {e}"))?;
|
||||
|
||||
let value = store.get(&identity_pin_key(&host, &user_id)).and_then(|v| {
|
||||
let value = store.get(identity_pin_key(&host, &user_id)).and_then(|v| {
|
||||
if let Value::String(s) = v {
|
||||
Some(s)
|
||||
} else {
|
||||
|
||||
@@ -178,7 +178,7 @@ func handleUpdateProfile(svc *service.Services, broadcaster ProfileBroadcaster)
|
||||
if req.IdentityPublicKey != nil {
|
||||
updated, err = svc.Users.UpdateIdentityKey(r.Context(), user.ID, *req.IdentityPublicKey)
|
||||
if err != nil {
|
||||
writeServiceError(w, err)
|
||||
writeServiceError(r.Context(), w, err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user