Skip to content

Commit

Permalink
fix dubbo demo (mosn#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzhilong23 committed Apr 10, 2022
1 parent fa5ebd7 commit f417d85
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
Expand Up @@ -15,21 +15,16 @@ go build -o layotto cmd/layotto/main.go

这里使用了`dubbo-go-samples`提供的示例服务
```sh
git clone [email protected]:apache/dubbo-go-samples.git
git clone [email protected]:apache/dubbo-go-samples.git (f0d1e1076397a4736de080ffb16cd0963c8c2f9d since Sun Mar 20 22:01:12)
cd dubbo-go-samples

# start zookeeper
cd attachment/go-server
make -f ../../build/Makefile docker-up
cd -
cd rpc/jsonrpc/go-server
docker-compose -f docker/docker-compose.yml up -d

# build dubbo server
cd general/jsonrpc/go-server
sh assembly/mac/dev.sh

# 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 f417d85

Please sign in to comment.