Skip to content

Commit 7d0424a

Browse files
committed
Load last 50 artifacts
1 parent 2104454 commit 7d0424a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

site/src/load.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,18 +242,16 @@ impl SiteCtxt {
242242

243243
// Gather published artifacts that are not yet tested and are not in progress
244244
let mut artifacts: Vec<String> = vec![];
245-
for line in artifact_list.lines().rev() {
245+
246+
// Ignore too old artifacts
247+
for line in artifact_list.lines().rev().take(50) {
246248
if let Some(artifact) = parse_published_artifact_tag(&line) {
247249
if !tested_artifacts.contains(artifact.as_str())
248250
&& !in_progress_artifacts.contains(&artifact)
249251
{
250252
artifacts.push(artifact);
251253
}
252254
}
253-
// Ignore too old artifacts
254-
if artifacts.len() == 10 {
255-
break;
256-
}
257255
}
258256

259257
Ok(artifacts)

0 commit comments

Comments
 (0)