From 02b868a883bdc39ee4fc9fe72810957b9b3b6683 Mon Sep 17 00:00:00 2001 From: sfw Date: Mon, 6 Aug 2018 21:23:46 +0800 Subject: [PATCH] fixed code --- ch4-rpc/ch4-04-grpc.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ch4-rpc/ch4-04-grpc.md b/ch4-rpc/ch4-04-grpc.md index c338720..e19cf76 100644 --- a/ch4-rpc/ch4-04-grpc.md +++ b/ch4-rpc/ch4-04-grpc.md @@ -346,11 +346,11 @@ func main() { client := NewPubsubServiceClient(conn) - reply, err := client.Publish(context.Background(), &String{Value: "golang: hello Go"}) + _, err = client.Publish(context.Background(), &String{Value: "golang: hello Go"}) if err != nil { log.Fatal(err) } - reply, err := client.Publish(context.Background(), &String{Value: "docker: hello Docker"}) + _, err = client.Publish(context.Background(), &String{Value: "docker: hello Docker"}) if err != nil { log.Fatal(err) }