Add check for zero-length server addresses
This commit is contained in:
parent
1e7a3b8d8d
commit
6f98c853b8
|
@ -833,7 +833,10 @@ func (m *subscriptionManager) subscribeServerAddrs(
|
||||||
serverAddrs = append(serverAddrs, grpcAddr)
|
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{
|
updateCh <- cache.UpdateEvent{
|
||||||
CorrelationID: subServerAddrs,
|
CorrelationID: subServerAddrs,
|
||||||
|
|
Loading…
Reference in New Issue