mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 04:22: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()
|
defer conn.Close()
|
||||||
|
|
||||||
client := NewPubsubServiceClient(conn)
|
client := NewPubsubServiceClient(conn)
|
||||||
stream, err := client.SubscribeTopic(
|
stream, err := client.Subscribe(
|
||||||
context.Background(), &String{Value: "golang:"},
|
context.Background(), &String{Value: "golang:"},
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user