Sfoglia il codice sorgente

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 anni fa
parent
commit
8172548b81
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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,