File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ impl SysrootDownload {
223223 ] ;
224224
225225 // Did we see any other error than 404?
226- let mut non_404_error = false ;
226+ let mut found_error_that_is_not_404 = false ;
227227 for url in & urls {
228228 log:: debug!( "requesting: {}" , url) ;
229229 let resp = reqwest:: get ( url)
@@ -243,16 +243,17 @@ impl SysrootDownload {
243243 Ok ( ( ) ) => return Ok ( ( ) ) ,
244244 Err ( err) => {
245245 log:: warn!( "extracting {url} failed: {err:?}" ) ;
246- non_404_error = true ;
246+ found_error_that_is_not_404 = true ;
247247 }
248248 }
249249 }
250250 StatusCode :: NOT_FOUND => { }
251- _ => non_404_error = true ,
251+ _ => found_error_that_is_not_404 = true ,
252252 }
253253 }
254254
255- if !non_404_error {
255+ if !found_error_that_is_not_404 {
256+ // The only errors we saw were 404, so we assume that the toolchain is simply not on CI
256257 Err ( SysrootDownloadError :: SysrootShaNotFound )
257258 } else {
258259 Err ( SysrootDownloadError :: IO ( anyhow ! (
Original file line number Diff line number Diff line change @@ -1776,7 +1776,7 @@ where
17761776 benchmark_set : BenchmarkSet ,
17771777 ) -> anyhow:: Result < Option < ( BenchmarkJob , ArtifactId ) > > {
17781778 // We take the oldest job from the job_queue matching the benchmark_set,
1779- // target and status of 'queued' or 'in-progress '
1779+ // target and status of 'queued' or 'in_progress '
17801780 // If a job was dequeued, we increment its retry (dequeue) count
17811781 let row_opt = self
17821782 . conn ( )
You can’t perform that action at this time.
0 commit comments