Skip to content

Commit

Permalink
fix dubbo demo (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzhilong23 committed Apr 11, 2022
1 parent fa5ebd7 commit a2d6e5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion demo/rpc/dubbo_json_rpc/dubbo_json_client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func main() {
resp, err := cli.InvokeService(
ctx,
&runtimev1pb.InvokeServiceRequest{
Id: "com.ikurento.user.UserProvider",
Id: "org.apache.dubbo.samples.UserProvider",
Message: &runtimev1pb.CommonInvokeRequest{
Method: "GetUser",
ContentType: "",
Expand Down
17 changes: 6 additions & 11 deletions docs/zh/start/rpc/dubbo_json_rpc.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Dubbo JSON RPC Example

*Note: This demo needs to run under go v1.17*
## 快速开始
1. 修改配置文件,加入`dubbo_json_rpc`插件

Expand All @@ -19,17 +19,12 @@ git clone git@github.com:apache/dubbo-go-samples.git
cd dubbo-go-samples

# start zookeeper
cd attachment/go-server
make -f ../../build/Makefile docker-up
cd -

# build dubbo server
cd general/jsonrpc/go-server
sh assembly/mac/dev.sh
cd rpc/jsonrpc/go-server
docker-compose -f docker/docker-compose.yml up -d

# start dubbo server
cd target/darwin/{generate_folder}/
sh ./bin/load.sh start
# build && start dubbo server
cd cmd
go run .
```

4. 通过GPRC接口发起调用
Expand Down

0 comments on commit a2d6e5d

Please sign in to comment.