From 16e79ed50817fd6dd3bc2d024a8168ed03b017a2 Mon Sep 17 00:00:00 2001 From: pedrocarlo Date: Fri, 12 Sep 2025 12:41:01 -0300 Subject: [PATCH] slight adjustment in perf throughtput printing --- perf/throughput/turso/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perf/throughput/turso/src/main.rs b/perf/throughput/turso/src/main.rs index dd62e949b..66e2efd9c 100644 --- a/perf/throughput/turso/src/main.rs +++ b/perf/throughput/turso/src/main.rs @@ -78,11 +78,11 @@ async fn main() -> Result<()> { } let mut total_inserts = 0; - for handle in handles { + for (idx, handle) in handles.into_iter().enumerate() { match handle.await { Ok(Ok(inserts)) => total_inserts += inserts, Ok(Err(e)) => { - eprintln!("Thread error: {e}"); + eprintln!("Thread error {idx}: {e}"); return Err(e); } Err(_) => {