whitekeyboard commented on issue #1100:
URL: https://github.com/apache/dubbo-go/issues/1100#issuecomment-806302521


   补充一下:
   dubbo协议的Refer函数会返回nil,导致上述的panic
   ```
   // 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
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to