From a56b3867863e877a35e1d15de5c4c78d323b41fa Mon Sep 17 00:00:00 2001 From: sfw Date: Fri, 4 Oct 2019 16:36:45 +0800 Subject: [PATCH 1/2] ch4-02 fix type --- ch4-rpc/ch4-02-pb-intro.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch4-rpc/ch4-02-pb-intro.md b/ch4-rpc/ch4-02-pb-intro.md index 54351af..247c3cc 100644 --- a/ch4-rpc/ch4-02-pb-intro.md +++ b/ch4-rpc/ch4-02-pb-intro.md @@ -220,7 +220,7 @@ func main() { } ``` -为了避免对protoc-gen-go插件造成干扰,我们将我们的可执行程序命名为protoc-gen-go-netrpc,表示包含了nerpc插件。然后用以下命令重新编译hello.proto文件: +为了避免对protoc-gen-go插件造成干扰,我们将我们的可执行程序命名为protoc-gen-go-netrpc,表示包含了netrpc插件。然后用以下命令重新编译hello.proto文件: ``` $ protoc --go-netrpc_out=plugins=netrpc:. hello.proto From 2394d4305ccc89f7fb77b2e0cf1946a5949cc1cd Mon Sep 17 00:00:00 2001 From: sfw Date: Fri, 4 Oct 2019 16:41:41 +0800 Subject: [PATCH 2/2] ch4-8 fix typo --- ch4-rpc/ch4-08-grpcurl.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch4-rpc/ch4-08-grpcurl.md b/ch4-rpc/ch4-08-grpcurl.md index 94f5d69..104f4f4 100644 --- a/ch4-rpc/ch4-08-grpcurl.md +++ b/ch4-rpc/ch4-08-grpcurl.md @@ -194,4 +194,4 @@ $ grpcurl -plaintext -d @ localhost:1234 HelloService.HelloService/Channel } ``` -通过grpcurl工具,我们可以在没有服务端代码的环境下测试gRPC服务。 +通过grpcurl工具,我们可以在没有客户端代码的环境下测试gRPC服务。