1
0
Fork 0

Update Github API limits with every response

This commit is contained in:
Gregory Eremin 2015-01-11 21:10:11 +07:00
parent 9c4f281da3
commit 5e5ca78cad
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,8 @@ func (c *GithubClient) ListRepos() []string {
for {
opt.Page++
repos, _, err := c.client.Repositories.ListByOrg(c.owner, opt)
repos, resp, err := c.client.Repositories.ListByOrg(c.owner, opt)
c.saveResponseMeta(resp)
if err != nil {
panic(err)
}