func (dp *DubboProtocol) Refer(url *common.URL) protocol.Invoker {
	exchangeClient := getExchangeClient(url)
	if exchangeClient == nil {
		logger.Warnf("can't dial the server: %+v", url.Location)
		return nil
	}
	invoker := NewDubboInvoker(url, exchangeClient)
	dp.SetInvokers(invoker)
	logger.Infof("Refer service: %s", url.String())
	return invoker
}
// Refer create dubbo service reference.
Refer create dubbo service reference.
// Refer create dubbo service reference .
func (dp *DubboProtocol) Refer(url *common.URL) protocol.Invoker {
	exchangeClient := getExchangeClient(url)
	if exchangeClient == nil {
		logger.Warnf("can't dial the server: %+v", url.Location)
		return nil
	}
	invoker := NewDubboInvoker(url, exchangeClient)
	dp.SetInvokers(invoker)
	logger.Infof("Refer service: %s", url.String())
	return invoker
}
func ( dp * DubboProtocol ) Refer ( url * common . URL ) protocol . Invoker { exchangeClient := getExchangeClient ( url ) if exchangeClient == nil { logger . Warnf ( " " , url . Location ) return nil } invoker := NewDubboInvoker ( url , exchangeClient ) dp . SetInvokers ( invoker ) logger . Infof ( " " , url . String ( ) ) return invoker }
Refer create dubbo service reference.
Refer create dubbo service reference .