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 {
353
353
}
354
354
355
355
impl 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 ) {
361
357
conn. collector_start_step ( self . artifact_row_id , & benchmark_name. 0 )
362
- . await
358
+ . await ;
363
359
}
364
360
365
361
pub async fn end_compile_step ( & self , conn : & dyn Connection , benchmark_name : & BenchmarkName ) {
Original file line number Diff line number Diff line change @@ -1095,19 +1095,14 @@ where
1095
1095
== 1
1096
1096
}
1097
1097
async fn collector_end_step ( & self , aid : ArtifactIdNumber , step : & str ) {
1098
- let did_modify = self
1099
- . conn ( )
1098
+ self . conn ( )
1100
1099
. execute (
1101
1100
"update collector_progress set end_time = statement_timestamp() \
1102
- where aid = $1 and step = $2 and start_time is not null and end_time is null ;",
1101
+ where aid = $1 and step = $2 and start_time is not null;",
1103
1102
& [ & ( aid. 0 as i32 ) , & step] ,
1104
1103
)
1105
1104
. await
1106
- . unwrap ( )
1107
- == 1 ;
1108
- if !did_modify {
1109
- log:: error!( "did not end {} for {:?}" , step, aid) ;
1110
- }
1105
+ . unwrap ( ) ;
1111
1106
}
1112
1107
async fn collector_remove_step ( & self , aid : ArtifactIdNumber , step : & str ) {
1113
1108
self . conn ( )
Original file line number Diff line number Diff line change @@ -1050,18 +1050,13 @@ impl Connection for SqliteConnection {
1050
1050
}
1051
1051
1052
1052
async fn collector_end_step ( & self , aid : ArtifactIdNumber , step : & str ) {
1053
- let did_modify = self
1054
- . raw_ref ( )
1053
+ self . raw_ref ( )
1055
1054
. execute (
1056
1055
"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;",
1058
1057
params ! [ & aid. 0 , & step] ,
1059
1058
)
1060
- . unwrap ( )
1061
- == 1 ;
1062
- if !did_modify {
1063
- log:: error!( "did not end {} for {:?}" , step, aid) ;
1064
- }
1059
+ . unwrap ( ) ;
1065
1060
}
1066
1061
1067
1062
async fn collector_remove_step ( & self , aid : ArtifactIdNumber , step : & str ) {
You can’t perform that action at this time.
0 commit comments