浏览代码

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
         from rustc_commits
         where time >= current_date - interval '168 days'
-        order by time desc;",
+        order by time desc limit 50;",
             &[],
         )
         .await