We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2104454 commit 7d0424aCopy full SHA for 7d0424a
site/src/load.rs
@@ -242,18 +242,16 @@ impl SiteCtxt {
242
243
// Gather published artifacts that are not yet tested and are not in progress
244
let mut artifacts: Vec<String> = vec![];
245
- for line in artifact_list.lines().rev() {
+
246
+ // Ignore too old artifacts
247
+ for line in artifact_list.lines().rev().take(50) {
248
if let Some(artifact) = parse_published_artifact_tag(&line) {
249
if !tested_artifacts.contains(artifact.as_str())
250
&& !in_progress_artifacts.contains(&artifact)
251
{
252
artifacts.push(artifact);
253
}
254
- // Ignore too old artifacts
- if artifacts.len() == 10 {
255
- break;
256
- }
257
258
259
Ok(artifacts)
0 commit comments