Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate with the team repo #267

Merged
merged 7 commits into from
Mar 31, 2019
Merged

Integrate with the team repo #267

merged 7 commits into from
Mar 31, 2019

Conversation

pietroalbini
Copy link
Member

src/scraper.rs Outdated Show resolved Hide resolved
src/teams.rs Outdated Show resolved Hide resolved
src/teams.rs Outdated Show resolved Hide resolved
src/github/nag.rs Show resolved Hide resolved
src/teams.rs Outdated Show resolved Hide resolved
src/teams.rs Show resolved Hide resolved
let de: ToDeserialize = ::reqwest::get(url)?
.error_for_status()?
.json()?;
self.cached_teams = de.teams;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self: rust-lang/rfcs#2522 would have been handy here.

src/teams.rs Outdated Show resolved Hide resolved
src/teams.rs Outdated Show resolved Hide resolved
src/teams.rs Outdated Show resolved Hide resolved
@pietroalbini
Copy link
Member Author

Addressed all review comments, and fixed CI failing.

Copy link
Contributor

@Centril Centril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good; just a nit :)

src/scraper.rs Outdated Show resolved Hide resolved
src/teams.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@Centril Centril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

thread::sleep(sleep_duration);
}
})
pub fn start_scraping() -> Option<JoinHandle<()>> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self (i.e. please ignore for PR review purposes), cc Centril/rfcs#17.
This would have been so nice with:

pub fn start_scraping() -> Option<JoinHandle<()>> = try {
    spawn_thread("GitHub scraper", CONFIG.github_interval_mins?, || try {
        scrape_github(github::most_recent_update()?);
    })
};

@Centril Centril merged commit 586e101 into rust-lang:master Mar 31, 2019
@pietroalbini pietroalbini deleted the team-repo branch March 31, 2019 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants