mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-26 04:24:21 +01:00
slight adjustment in perf throughtput printing
This commit is contained in:
@@ -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(_) => {
|
||||
|
||||
Reference in New Issue
Block a user