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 @@ -1111,19 +1111,14 @@ where
1111
1111
== 1
1112
1112
}
1113
1113
async fn collector_end_step ( & self , aid : ArtifactIdNumber , step : & str ) {
1114
- let did_modify = self
1115
- . conn ( )
1114
+ self . conn ( )
1116
1115
. execute (
1117
1116
"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;",
1119
1118
& [ & ( aid. 0 as i32 ) , & step] ,
1120
1119
)
1121
1120
. await
1122
- . unwrap ( )
1123
- == 1 ;
1124
- if !did_modify {
1125
- log:: error!( "did not end {} for {:?}" , step, aid) ;
1126
- }
1121
+ . unwrap ( ) ;
1127
1122
}
1128
1123
async fn collector_remove_step ( & self , aid : ArtifactIdNumber , step : & str ) {
1129
1124
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