Skip to content

Commit

Permalink
Merge pull request #233 from fuwensun/pr4-4-2b
Browse files Browse the repository at this point in the history
fixed code
  • Loading branch information
chai2010 authored Aug 6, 2018
2 parents 8d89761 + 02b868a commit 541cdf8
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 541cdf8

Please sign in to comment.