mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-23 20:02:22 +00:00
Update ch4-04-grpc.md
This commit is contained in:
parent
f3b5363895
commit
dc33102cd8
@ -386,7 +386,7 @@ func main() {
|
||||
defer conn.Close()
|
||||
|
||||
client := NewPubsubServiceClient(conn)
|
||||
stream, err := client.SubscribeTopic(
|
||||
stream, err := client.Subscribe(
|
||||
context.Background(), &String{Value: "golang:"},
|
||||
)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user