Skip to content

Commit

Permalink
fixed code
Browse files Browse the repository at this point in the history
  • Loading branch information
fuwensun committed Aug 6, 2018
1 parent 1d13c6f commit 02b868a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ch4-rpc/ch4-04-grpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 02b868a

Please sign in to comment.