Skip to content

Commit

Permalink
doc: typo of PubsubService_SubscribeServer
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrard-YNWA committed Feb 9, 2021
1 parent 4d85506 commit 7a0788d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch4-rpc/ch4-04-grpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ type PubsubService_SubscribeServer interface {
}
```

因为Subscribe是服务端的单向流,因此生成的HelloService_SubscribeServer接口中只有Send方法
因为Subscribe是服务端的单向流,因此生成的PubsubService_SubscribeServer接口中只有Send方法

然后就可以实现发布和订阅服务了:

Expand Down

0 comments on commit 7a0788d

Please sign in to comment.