mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 13:44:05 -08:00
Goroutine: Fix ambiguous variable (#7175)
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
This commit is contained in:
parent
746820ede8
commit
05038b48bd
|
@ -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()
|
||||
}()
|
||||
|
|
Loading…
Reference in a new issue