Alanxtl commented on code in PR #3184:
URL: https://github.com/apache/dubbo-go/pull/3184#discussion_r2739497757
##########
protocol/base/base_invoker.go:
##########
@@ -71,6 +74,9 @@ func NewBaseInvoker(url *common.URL) *BaseInvoker {
// GetURL gets base invoker URL
func (bi *BaseInvoker) GetURL() *common.URL {
+ if bi.url == nil {
+ return emptyURL
+ }
return bi.url
}
Review Comment:
这个函数现在向上层返回一个 `"empty"` 其他调用者看到这个 `"empty"` 之后行为是什么样的呀,能不能贴个代码出来举个例子
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]