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 @@ -354,13 +354,9 @@ pub struct CollectorCtx {
354
354
}
355
355
356
356
impl CollectorCtx {
357
- pub async fn start_compile_step (
358
- & self ,
359
- conn : & dyn Connection ,
360
- benchmark_name : & BenchmarkName ,
361
- ) -> bool {
357
+ pub async fn start_compile_step ( & self , conn : & dyn Connection , benchmark_name : & BenchmarkName ) {
362
358
conn. collector_start_step ( self . artifact_row_id , & benchmark_name. 0 )
363
- . await
359
+ . await ;
364
360
}
365
361
366
362
pub async fn end_compile_step ( & self , conn : & dyn Connection , benchmark_name : & BenchmarkName ) {
Original file line number Diff line number Diff line change @@ -1176,19 +1176,14 @@ where
1176
1176
== 1
1177
1177
}
1178
1178
async fn collector_end_step ( & self , aid : ArtifactIdNumber , step : & str ) {
1179
- let did_modify = self
1180
- . conn ( )
1179
+ self . conn ( )
1181
1180
. execute (
1182
1181
"update collector_progress set end_time = statement_timestamp() \
1183
- where aid = $1 and step = $2 and start_time is not null and end_time is null ;",
1182
+ where aid = $1 and step = $2 and start_time is not null;",
1184
1183
& [ & ( aid. 0 as i32 ) , & step] ,
1185
1184
)
1186
1185
. await
1187
- . unwrap ( )
1188
- == 1 ;
1189
- if !did_modify {
1190
- log:: error!( "did not end {} for {:?}" , step, aid) ;
1191
- }
1186
+ . unwrap ( ) ;
1192
1187
}
1193
1188
async fn collector_remove_step ( & self , aid : ArtifactIdNumber , step : & str ) {
1194
1189
self . conn ( )
Original file line number Diff line number Diff line change @@ -1062,18 +1062,13 @@ impl Connection for SqliteConnection {
1062
1062
}
1063
1063
1064
1064
async fn collector_end_step ( & self , aid : ArtifactIdNumber , step : & str ) {
1065
- let did_modify = self
1066
- . raw_ref ( )
1065
+ self . raw_ref ( )
1067
1066
. execute (
1068
1067
"update collector_progress set end = strftime('%s','now') \
1069
- where aid = ? and step = ? and start is not null and end is null ;",
1068
+ where aid = ? and step = ? and start is not null;",
1070
1069
params ! [ & aid. 0 , & step] ,
1071
1070
)
1072
- . unwrap ( )
1073
- == 1 ;
1074
- if !did_modify {
1075
- log:: error!( "did not end {} for {:?}" , step, aid) ;
1076
- }
1071
+ . unwrap ( ) ;
1077
1072
}
1078
1073
1079
1074
async fn collector_remove_step ( & self , aid : ArtifactIdNumber , step : & str ) {
You can’t perform that action at this time.
0 commit comments