File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed
site/src/request_handlers Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -4,19 +4,18 @@ use collector::api::next_artifact;
44use std:: sync:: Arc ;
55
66pub async fn handle_next_artifact ( ctxt : Arc < SiteCtxt > ) -> next_artifact:: Response {
7- // Temporarily disabled while we migrate to a new collector machine
87 // Prefer benchmarking released artifacts first
9- // match ctxt.missing_published_artifacts().await {
10- // Ok(next_artifact) => {
11- // if let Some(next_artifact) = next_artifact.into_iter().next() {
12- // log::debug!("next_artifact: {next_artifact}");
13- // return next_artifact::Response {
14- // artifact: Some(next_artifact::NextArtifact::Release(next_artifact)),
15- // };
16- // }
17- // }
18- // Err(error) => log::error!("Failed to fetch missing artifacts: {error:?}"),
19- // }
8+ match ctxt. missing_published_artifacts ( ) . await {
9+ Ok ( next_artifact) => {
10+ if let Some ( next_artifact) = next_artifact. into_iter ( ) . next ( ) {
11+ log:: debug!( "next_artifact: {next_artifact}" ) ;
12+ return next_artifact:: Response {
13+ artifact : Some ( next_artifact:: NextArtifact :: Release ( next_artifact) ) ,
14+ } ;
15+ }
16+ }
17+ Err ( error) => log:: error!( "Failed to fetch missing artifacts: {error:?}" ) ,
18+ }
2019
2120 let next_commit = ctxt. missing_commits ( ) . await . into_iter ( ) . next ( ) ;
2221
You can’t perform that action at this time.
0 commit comments