This is an automated email from the ASF dual-hosted git repository. ztelur pushed a commit to branch tmp/dubbo2http in repository https://gitbox.apache.org/repos/asf/dubbo-go-samples.git
commit 66cd95bb86d01cd0cd3997d2aa38d9a2c6de7787 Author: Randy <[email protected]> AuthorDate: Fri Dec 17 17:33:41 2021 +0800 commit --- generic/default/go-client/cmd/client.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/generic/default/go-client/cmd/client.go b/generic/default/go-client/cmd/client.go index fd4bd4a..e16bfb6 100644 --- a/generic/default/go-client/cmd/client.go +++ b/generic/default/go-client/cmd/client.go @@ -27,7 +27,6 @@ import ( "dubbo.apache.org/dubbo-go/v3/config" "dubbo.apache.org/dubbo-go/v3/config/generic" _ "dubbo.apache.org/dubbo-go/v3/imports" - "dubbo.apache.org/dubbo-go/v3/protocol/dubbo" hessian "github.com/apache/dubbo-go-hessian2" tpconst "github.com/dubbogo/triple/pkg/common/constant" ) @@ -44,8 +43,8 @@ func main() { hessian.RegisterPOJO(&pkg.User{}) // generic invocation samples using hessian serialization on Dubbo protocol - dubboRefConf := newRefConf("org.apache.dubbo.samples.UserProvider", tpconst.TRIPLE) - callGetUser(dubboRefConf) + tripleRefConf := newRefConf("org.apache.dubbo.samples.UserProviderTriple", tpconst.TRIPLE) + callGetUser(tripleRefConf) } @@ -188,12 +187,12 @@ func callQueryAll(refConf config.ReferenceConfig) { func newRefConf(iface, protocol string) config.ReferenceConfig { refConf := config.ReferenceConfig{ - InterfaceName: "org.apache.dubbo.samples.UserProvider", + InterfaceName: iface, Cluster: "failover", RegistryIDs: []string{"zk"}, - Protocol: dubbo.DUBBO, + Protocol: protocol, Generic: "true", - URL: "dubbo://127.0.0.1:20001/org.apache.dubbo.samples.UserProvider", + URL: "dubbo://127.0.0.1:20001/" + iface, } rootConfig := config.NewRootConfigBuilder().
