hookokoko commented on PR #603:
URL: https://github.com/apache/dubbo-go-pixiu/pull/603#issuecomment-1868483664
```
func (proto *registryProtocol) Refer(url *common.URL) protocol.Invoker {
......
if registryUrl.Protocol == constant.RegistryProtocol {
registryUrl.Protocol =
registryUrl.GetParam(constant.RegistryKey, "")
}
......
```
在跑pixiu sample中的body例子时,dubbogo
3.1.0版本中会将registryUrl.Protocol设置为service-discovery-registry,上面if分支中应该需要额外一个判断:
```if registryUrl.Protocol == constant.RegistryProtocol ||
registryUrl.Protocol == "service-discovery-registry" {...}```
不然找不到registry对象
--
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]