We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb98d2a commit 01b50f1Copy full SHA for 01b50f1
modules/migrations/github.go
@@ -149,7 +149,7 @@ func (g *GithubDownloaderV3) waitAndPickClient() {
149
recentIdx = i
150
}
151
152
- g.curClientIdx = recentIdx
+ g.curClientIdx = recentIdx // if no max remain, it will always pick the first client.
153
154
for g.rates[g.curClientIdx] != nil && g.rates[g.curClientIdx].Remaining <= GithubLimitRateRemaining {
155
timer := time.NewTimer(time.Until(g.rates[g.curClientIdx].Reset.Time))
0 commit comments