From c80af65aa6aa5fd01bba29deff3393ad0f456d2a Mon Sep 17 00:00:00 2001 From: gkze Date: Fri, 28 Sep 2018 11:43:44 -0700 Subject: [PATCH] Fix typo --- starmanager/starmanager.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/starmanager/starmanager.go b/starmanager/starmanager.go index 98eb5dc..b5c8654 100644 --- a/starmanager/starmanager.go +++ b/starmanager/starmanager.go @@ -154,7 +154,7 @@ func (s *StarManager) SaveStarredPage(pageno int, responses chan *github.Respons responses <- response } - log.Printf("Atresultsting to save starred projects on page %d...\n", pageno) + log.Printf("Attempting to save starred projects on page %d...\n", pageno) for _, r := range firstPage { go s.SaveStarredRepository(r.Repository, wg) } @@ -168,11 +168,11 @@ func (s *StarManager) SaveAllStars() (bool, error) { responses := make(chan *github.Response, 1) // Fetch the first page to determine the last page number from the response "Link" header - log.Printf("Atresultsting to save first page...") + log.Printf("Attempting to save first page...") go s.SaveStarredPage(1, responses, &wg) firstPageResponse := <-responses - log.Printf("Atresultsting to save the rest of the pages...") + log.Printf("Attempting to save the rest of the pages...") for i := 2; i <= firstPageResponse.LastPage; i++ { go s.SaveStarredPage(i, nil, &wg) }