1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-23 20:02:22 +00:00

Merge pull request #529 from Gerrard-YNWA/ch4-rpc-patch

doc: typo of PubsubService_SubscribeServer
This commit is contained in:
Xargin 2021-04-03 23:13:32 +08:00 committed by GitHub
commit 0ca0e9da6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -300,7 +300,7 @@ type PubsubService_SubscribeServer interface {
}
```
因为Subscribe是服务端的单向流因此生成的HelloService_SubscribeServer接口中只有Send方法。
因为Subscribe是服务端的单向流因此生成的PubsubService_SubscribeServer接口中只有Send方法。
然后就可以实现发布和订阅服务了: