浏览代码

Do not issue query to get GH username

This is a temporary fix for the GitHub API problems we're having currently.
Mark Rousskov 4 年之前
父节点
当前提交
8172548b81
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main.rs

+ 1 - 1
src/main.rs

@@ -190,7 +190,7 @@ async fn run_server(addr: SocketAddr) -> anyhow::Result<()> {
         .build()
         .expect("Failed to build octograb.");
     let ctx = Arc::new(Context {
-        username: github::User::current(&gh).await.unwrap().login,
+        username: String::from("rustbot"),
         db: db_client,
         github: gh,
         octocrab: oc,