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:
J3vb
2026-07-24 11:29:21 +02:00
co-authored by Claude Opus 4.8
parent 1423b17993
commit d35de4ca0a
2 changed files with 2 additions and 2 deletions
@@ -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 {
+1 -1
View File
@@ -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
}
}