mirror of https://github.com/k3s-io/k3s
proxy: lock should be above the fields it protects.
parent
6a2703627b
commit
1816a63d55
|
@ -32,10 +32,9 @@ import (
|
|||
|
||||
// LoadBalancerRR is a round-robin load balancer.
|
||||
type LoadBalancerRR struct {
|
||||
lock sync.RWMutex
|
||||
endpointsMap map[string][]string
|
||||
rrIndex map[string]int
|
||||
|
||||
lock sync.RWMutex
|
||||
}
|
||||
|
||||
// NewLoadBalancerRR returns a new LoadBalancerRR.
|
||||
|
|
Loading…
Reference in New Issue