Skip to content

Commit

Permalink
Add comment for get client
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Oct 15, 2021
1 parent eb98d2a commit 01b50f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/migrations/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (g *GithubDownloaderV3) waitAndPickClient() {
recentIdx = i
}
}
g.curClientIdx = recentIdx
g.curClientIdx = recentIdx // if no max remain, it will always pick the first client.

for g.rates[g.curClientIdx] != nil && g.rates[g.curClientIdx].Remaining <= GithubLimitRateRemaining {
timer := time.NewTimer(time.Until(g.rates[g.curClientIdx].Reset.Time))
Expand Down

0 comments on commit 01b50f1

Please sign in to comment.