File tree Expand file tree Collapse file tree 3 files changed +8
-22
lines changed Expand file tree Collapse file tree 3 files changed +8
-22
lines changed Original file line number Diff line number Diff line change @@ -353,13 +353,9 @@ pub struct CollectorCtx {
353353}
354354
355355impl CollectorCtx {
356- pub async fn start_compile_step (
357- & self ,
358- conn : & dyn Connection ,
359- benchmark_name : & BenchmarkName ,
360- ) -> bool {
356+ pub async fn start_compile_step ( & self , conn : & dyn Connection , benchmark_name : & BenchmarkName ) {
361357 conn. collector_start_step ( self . artifact_row_id , & benchmark_name. 0 )
362- . await
358+ . await ;
363359 }
364360
365361 pub async fn end_compile_step ( & self , conn : & dyn Connection , benchmark_name : & BenchmarkName ) {
Original file line number Diff line number Diff line change @@ -1111,19 +1111,14 @@ where
11111111 == 1
11121112 }
11131113 async fn collector_end_step ( & self , aid : ArtifactIdNumber , step : & str ) {
1114- let did_modify = self
1115- . conn ( )
1114+ self . conn ( )
11161115 . execute (
11171116 "update collector_progress set end_time = statement_timestamp() \
1118- where aid = $1 and step = $2 and start_time is not null and end_time is null ;",
1117+ where aid = $1 and step = $2 and start_time is not null;",
11191118 & [ & ( aid. 0 as i32 ) , & step] ,
11201119 )
11211120 . await
1122- . unwrap ( )
1123- == 1 ;
1124- if !did_modify {
1125- log:: error!( "did not end {} for {:?}" , step, aid) ;
1126- }
1121+ . unwrap ( ) ;
11271122 }
11281123 async fn collector_remove_step ( & self , aid : ArtifactIdNumber , step : & str ) {
11291124 self . conn ( )
Original file line number Diff line number Diff line change @@ -1050,18 +1050,13 @@ impl Connection for SqliteConnection {
10501050 }
10511051
10521052 async fn collector_end_step ( & self , aid : ArtifactIdNumber , step : & str ) {
1053- let did_modify = self
1054- . raw_ref ( )
1053+ self . raw_ref ( )
10551054 . execute (
10561055 "update collector_progress set end = strftime('%s','now') \
1057- where aid = ? and step = ? and start is not null and end is null ;",
1056+ where aid = ? and step = ? and start is not null;",
10581057 params ! [ & aid. 0 , & step] ,
10591058 )
1060- . unwrap ( )
1061- == 1 ;
1062- if !did_modify {
1063- log:: error!( "did not end {} for {:?}" , step, aid) ;
1064- }
1059+ . unwrap ( ) ;
10651060 }
10661061
10671062 async fn collector_remove_step ( & self , aid : ArtifactIdNumber , step : & str ) {
You can’t perform that action at this time.
0 commit comments