You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/04/24 08:54:50 UTC

[dubbo-go-samples] branch master updated: invoke grpc service

This is an automated email from the ASF dual-hosted git repository.

alexstocks pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-go-samples.git


The following commit(s) were added to refs/heads/master by this push:
     new 05f9a9f  invoke grpc service
05f9a9f is described below

commit 05f9a9f1501f6cf8141bca55da9c8b53f54f10b5
Author: AlexStocks <al...@foxmail.com>
AuthorDate: Sat Apr 24 16:52:08 2021 +0800

    invoke grpc service
---
 direct/README.md    | 2 ++
 direct/README_zh.md | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/direct/README.md b/direct/README.md
index e9d49dc..5b03bf3 100644
--- a/direct/README.md
+++ b/direct/README.md
@@ -123,6 +123,8 @@ references:
         retries: 3
 ```
 
+If u wanna invoke a gRPC provider's service, pls change the url from "dubbo://127.0.0.1:20000" to "grpc://127.0.0.1:20000".
+
 2. Startup: Direct connection to the service to complete a service call
 
 ```go
diff --git a/direct/README_zh.md b/direct/README_zh.md
index e4fb5ce..b681efe 100644
--- a/direct/README_zh.md
+++ b/direct/README_zh.md
@@ -126,6 +126,8 @@ references:
         retries: 3
 ```
 
+注意,如果想调用 gRPC 服务,只需要把上面的 url 改为 ”grpc://127.0.0.1:20000" 即可。
+
 2. 应用启动:直连服务,完成一次服务调用
 
 ```go
@@ -138,6 +140,7 @@ err := userProvider.GetUser(context.TODO(), []interface{}{"A001"}, user)
 
 ### 如何运行
 请参阅根目录中的 [HOWTO.md](../HOWTO_zh.md) 来运行本例。
+
 #### 1. 环境配置
 
 配置环境变量,指定服务加载所需配置文件路径