mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 23:15:14 +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.
|
||||
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
Block a user