Преглед на файлове

Temporarily limit rustc commits

We're encountering trouble returning all of the commits (~800 currently), so
limit to a smaller subset.
Mark Rousskov преди 4 години
родител
ревизия
1a9cb03bd0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/db/rustc_commits.rs

+ 1 - 1
src/db/rustc_commits.rs

@@ -27,7 +27,7 @@ pub async fn get_commits_with_artifacts(db: &DbClient) -> anyhow::Result<Vec<Com
         select sha, parent_sha, time
         select sha, parent_sha, time
         from rustc_commits
         from rustc_commits
         where time >= current_date - interval '168 days'
         where time >= current_date - interval '168 days'
-        order by time desc;",
+        order by time desc limit 50;",
             &[],
             &[],
         )
         )
         .await
         .await