Skip to content

Commit 9e1f87d

Browse files
committed
small cleanup
1 parent f83b35e commit 9e1f87d

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

.cargo/config.toml

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use std::path::PathBuf;
22

33
#[derive(Debug, Clone)]
44
pub struct Config {
5+
// GitHub rate-limits are per-token, using more than one can speed up the scraper
56
pub github_token: Vec<String>,
67
pub data_dir: PathBuf,
78
pub timeout: Option<u64>,

src/data.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ use std::{
1717

1818
#[derive(Debug, Enum, Serialize, Deserialize, Copy, Clone)]
1919
pub enum Forge {
20+
#[serde(rename = "github")]
2021
Github,
2122
}
2223

src/main.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fn get_tokens_from_env() -> Vec<String> {
1515
let mut tokens = vec![];
1616

1717
if let Some(t) = env_token {
18-
tokens.push(t)
18+
tokens.push(t);
1919
}
2020

2121
if let Some(ts) = env_tokens {
@@ -36,8 +36,6 @@ async fn main() -> color_eyre::Result<()> {
3636
.with(EnvFilter::from_default_env())
3737
.init();
3838

39-
// console_subscriber::init();
40-
4139
let github_token = get_tokens_from_env();
4240

4341
let timeout = env::var("RUST_REPOS_TIMEOUT")

0 commit comments

Comments
 (0)