1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-28 15:32:20 +00:00

Merge pull request #196 from fuwensun/pr4-3-1d

ch2-fix typo
This commit is contained in:
chai2010 2018-07-16 16:28:06 +08:00 committed by GitHub
commit 0c95ef1fde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ func (client *Client) Go(serviceMethod string, args interface{}, reply interface
} }
``` ```
首先是构造一个表示当前调用的call变量然后通过`client.send`将call的完整参数发送到RPC框架。`client.send`方法调用是线程安全的因此可以从多个Goroutine同时向同一个RPC链接发调用指令。 首先是构造一个表示当前调用的call变量然后通过`client.send`将call的完整参数发送到RPC框架。`client.send`方法调用是线程安全的因此可以从多个Goroutine同时向同一个RPC链接发调用指令。
当调用完成或者发生错误时,将调用`call.done`方法通知完成: 当调用完成或者发生错误时,将调用`call.done`方法通知完成: