fix reivew issue: use Address.GetAddress function.
@@ -139,7 +139,7 @@ func (g *GrpcCluster) GetConnect() *grpc.ClientConn {
if len(g.config.Endpoints) == 0 {
panic("expect endpoint.")
}
- address := g.config.Endpoints[0].Address.Address
+ address := g.config.Endpoints[0].Address.GetAddress()
port := g.config.PickOneEndpoint().Address.Port
endpoint := fmt.Sprintf("%s:%d", address, port)
logger.Infof("to connect xds server %s ...", endpoint)
