Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
iduartgomez committed Oct 19, 2024
1 parent 176adf6 commit af262f8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions crates/core/src/transport/connection_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1580,9 +1580,17 @@ mod test {
)
.inspect(move |r| {
let msg = if r.is_ok() {
format!("successfully, total time: {}s (t/o: {}s, factor: {factor:.3})", now.elapsed().as_secs(), wait_time.as_secs())
format!(
"successfully, total time: {}s (t/o: {}s, factor: {factor:.3})",
now.elapsed().as_secs(),
wait_time.as_secs()
)
} else {
format!("with error, total time: {}s (t/o: {}s, factor: {factor:.3})", now.elapsed().as_secs(), wait_time.as_secs())
format!(
"with error, total time: {}s (t/o: {}s, factor: {factor:.3})",
now.elapsed().as_secs(),
wait_time.as_secs()
)
};
if r.is_err() {
tracing::error!("test #{test_no} finished {}", msg);
Expand Down

0 comments on commit af262f8

Please sign in to comment.