From 3d79872a230caec96bd393918be1027261694af2 Mon Sep 17 00:00:00 2001 From: sfw Date: Tue, 3 Jul 2018 16:58:36 +0800 Subject: [PATCH] ch4-01-fix typo --- ch4-rpc/ch4-01-rpc-intro.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch4-rpc/ch4-01-rpc-intro.md b/ch4-rpc/ch4-01-rpc-intro.md index 4ce242e..be6e705 100644 --- a/ch4-rpc/ch4-01-rpc-intro.md +++ b/ch4-rpc/ch4-01-rpc-intro.md @@ -291,7 +291,7 @@ type serverResponse struct { Go语言内在的RPC框架已经支持在Http协议上提供RPC服务。但是框架的http服务同样采用了内置的gob协议,并且没有提供采用其它协议的接口,因此从其它语言依然无法访问的。在前面的例子中,我们已经实现了在纯的TCP协议之上运行jsonrpc服务,并且可以通过nc命令行工具成功实现了RPC方法调用。现在我们尝试在http协议上提供jsonrpc服务。 -心的RPC服务其实是一个类似REST规范的接口,采用请求和相应处理流程: +新的RPC服务其实是一个类似REST规范的接口,接收请求和采用相应处理流程: ```go func main() {