Skip to content

Commit

Permalink
fix(prof): combine thread timeout errors properly (#3081)
Browse files Browse the repository at this point in the history
  • Loading branch information
morrisonlevi authored Feb 11, 2025
1 parent b8e8454 commit 4378c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion profiling/src/profiling/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ impl Profiler {
}

let num_failures = result1.is_err() as usize + result2.is_err() as usize;
result2.or(result1).map_err(|_| JoinError { num_failures })
result2.and(result1).map_err(|_| JoinError { num_failures })
} else {
Ok(())
}
Expand Down

0 comments on commit 4378c26

Please sign in to comment.