test(startup): encode observation digests with shared hex helper

This commit is contained in:
overtrue
2026-09-06 15:10:28 +08:00
parent 44333e136b
commit fdb3d9f9bb
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ fn startup_cas_rename_observation(
"target": match target { LocalMutationTarget::Ready(_) => "ready", LocalMutationTarget::Bootstrap(_) => "bootstrap", LocalMutationTarget::Unbound => "unbound" },
"disk": request.disk, "src_volume": request.src_volume, "src_path": request.src_path,
"dst_volume": request.dst_volume, "dst_path": request.dst_path,
"body_sha256": format!("{:x}", Sha256::digest(body)),
"body_sha256": rustfs_utils::crypto::hex(Sha256::digest(body)),
"etag": file_info.metadata.get("etag"),
"mod_time": file_info.mod_time.map(|time| time.unix_timestamp_nanos().to_string()),
}))