Goroutine: Fix ambiguous variable (#7175)

Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
This commit is contained in:
ga 2020-04-28 06:02:26 -04:00 committed by GitHub
parent 746820ede8
commit 05038b48bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -170,7 +170,7 @@ func (p *MemPostings) EnsureOrder() {
for i := 0; i < n; i++ {
go func() {
for l := range workc {
sort.Slice(l, func(i, j int) bool { return l[i] < l[j] })
sort.Slice(l, func(a, b int) bool { return l[a] < l[b] })
}
wg.Done()
}()