slight adjustment in perf throughtput printing

This commit is contained in:
pedrocarlo
2025-09-12 12:41:01 -03:00
parent a56680f79e
commit 16e79ed508

View File

@@ -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(_) => {