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