Skip to content

Commit 01b50f1

Browse files
committed
Add comment for get client
1 parent eb98d2a commit 01b50f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/migrations/github.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func (g *GithubDownloaderV3) waitAndPickClient() {
149149
recentIdx = i
150150
}
151151
}
152-
g.curClientIdx = recentIdx
152+
g.curClientIdx = recentIdx // if no max remain, it will always pick the first client.
153153

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

0 commit comments

Comments
 (0)