Skip to content

Integrate with the team repo #267

New issue

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

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

Already on GitHub? # to your account

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

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.

@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 :)

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants