mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-13 06:47:28 -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++ {
|
for i := 0; i < n; i++ {
|
||||||
go func() {
|
go func() {
|
||||||
for l := range workc {
|
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()
|
wg.Done()
|
||||||
}()
|
}()
|
||||||
|
|
Loading…
Reference in a new issue