-
Notifications
You must be signed in to change notification settings - Fork 67
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
Conversation
let de: ToDeserialize = ::reqwest::get(url)? | ||
.error_for_status()? | ||
.json()?; | ||
self.cached_teams = de.teams; |
There was a problem hiding this comment.
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.
Addressed all review comments, and fixed CI failing. |
There was a problem hiding this 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 :)
There was a problem hiding this 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<()>> { |
There was a problem hiding this comment.
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()?);
})
};
r? @Centril