From f8d744bb377c95dd9933e87d7dfb7daa74dcadd2 Mon Sep 17 00:00:00 2001 From: bellman Date: Thu, 14 May 2026 18:05:25 +0900 Subject: [PATCH] omx(team): auto-checkpoint worker-1 [1] --- rust/crates/runtime/src/lane_events.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/rust/crates/runtime/src/lane_events.rs b/rust/crates/runtime/src/lane_events.rs index 204289f2..52583a11 100644 --- a/rust/crates/runtime/src/lane_events.rs +++ b/rust/crates/runtime/src/lane_events.rs @@ -458,10 +458,12 @@ pub fn compute_event_fingerprint( }); let canonical = serde_json::to_vec(&payload).unwrap_or_default(); let digest = Sha256::digest(canonical); - digest[..8] - .iter() - .map(|byte| format!("{byte:02x}")) - .collect() + let mut fingerprint = String::with_capacity(16); + for byte in &digest[..8] { + use std::fmt::Write as _; + write!(&mut fingerprint, "{byte:02x}").expect("writing to String should not fail"); + } + fingerprint } /// Classification of event terminality for reconciliation.