AlexStocks commented on code in PR #489:
URL: https://github.com/apache/dubbo-go-samples/pull/489#discussion_r1073069226


##########
generic/README.md:
##########
@@ -50,3 +50,47 @@ Using command line tool. The `$ProjectRootDir` is the root 
directory of the dubb
 cd $ProjectRootDir/generic/default/go-client/cmd \
   && go run client.go
 ```
+
+## Switch the example from interface-level service discovery to 
application-level service discovery
+
+1. Modify the configuration file of the server go-server and add the field 
`registry-type: service`
+```
+registries:
+     zk:
+       protocol: zookeeper
+       timeout: 3s
+       address: 127.0.0.1:2181
+       registry-type: service
+...
+...
+```
+2. Modify the client.go file of client go-client
+
+First add the field `RegistryType: "service"`:
+```
+registryConfig := &config.RegistryConfig{
+     Protocol: "zookeeper",
+     Address: "127.0.0.1:2181",
+     RegistryType: "service",
+}
+```

Review Comment:
   the same. pls add a blank line here. and check other places too.



-- 
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: notifications-unsubscr...@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to