fix: formatting
This commit is contained in:
parent
fd6a05396b
commit
fd00b042bf
@ -126,9 +126,9 @@ func (lb *LoadBalancerRR) ServiceHasEndpoints(svcPort proxy.ServicePortName) boo
|
|||||||
lb.lock.RLock()
|
lb.lock.RLock()
|
||||||
defer lb.lock.RUnlock()
|
defer lb.lock.RUnlock()
|
||||||
state, exists := lb.services[svcPort]
|
state, exists := lb.services[svcPort]
|
||||||
if !exists || state == nil {
|
if !exists || state == nil {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return len(state.endpoints) > 0
|
return len(state.endpoints) > 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user