@@ -95,8 +95,6 @@ impl<'a> std::fmt::Display for BenchmarkConfigDisplay<'a> {
95
95
writeln ! ( f, " PMQ Priority: {}" , self . config. pmq_priority) ?;
96
96
}
97
97
98
-
99
-
100
98
let first_message_status = if self . config . include_first_message {
101
99
"Included in results"
102
100
} else {
@@ -384,7 +382,6 @@ impl BenchmarkRunner {
384
382
transport_config: & transport_config,
385
383
}
386
384
) ;
387
-
388
385
389
386
// Initialize results structure with test configuration
390
387
let mut results = BenchmarkResults :: new (
@@ -717,7 +714,6 @@ impl BenchmarkRunner {
717
714
} else if received >= msg_count_server {
718
715
break ;
719
716
}
720
- }
721
717
722
718
// Try to receive with a shorter timeout to avoid hanging
723
719
match timeout ( Duration :: from_millis ( 50 ) , transport. receive ( ) ) . await {
@@ -905,7 +901,13 @@ impl BenchmarkRunner {
905
901
if start_time. elapsed ( ) >= dur {
906
902
break ;
907
903
}
908
- } else if received >= if include_first_message { msg_count } else { msg_count + 1 } {
904
+ } else if received
905
+ >= if include_first_message {
906
+ msg_count
907
+ } else {
908
+ msg_count + 1
909
+ }
910
+ {
909
911
break ;
910
912
}
911
913
@@ -985,11 +987,8 @@ impl BenchmarkRunner {
985
987
}
986
988
987
989
// Try to receive response with timeout
988
- match tokio:: time:: timeout (
989
- Duration :: from_millis ( 50 ) ,
990
- client_transport. receive ( ) ,
991
- )
992
- . await
990
+ match tokio:: time:: timeout ( Duration :: from_millis ( 50 ) , client_transport. receive ( ) )
991
+ . await
993
992
{
994
993
Ok ( Ok ( _) ) => {
995
994
let latency = send_time. elapsed ( ) ;
0 commit comments