mirror of https://github.com/status-im/consul.git
Add check for zero-length server addresses
This commit is contained in:
parent
81e965479b
commit
5f2959329f
|
@ -833,7 +833,10 @@ func (m *subscriptionManager) subscribeServerAddrs(
|
|||
serverAddrs = append(serverAddrs, grpcAddr)
|
||||
}
|
||||
|
||||
// TODO(peering): handle empty addresses here?
|
||||
if len(serverAddrs) == 0 {
|
||||
m.logger.Warn("did not find any server addresses with external gRPC ports to publish")
|
||||
continue
|
||||
}
|
||||
|
||||
updateCh <- cache.UpdateEvent{
|
||||
CorrelationID: subServerAddrs,
|
||||
|
|
Loading…
Reference in New Issue