1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-24 12:32:21 +00:00

Merge pull request #233 from fuwensun/pr4-4-2b

fixed code
This commit is contained in:
chai2010 2018-08-06 22:46:29 +08:00 committed by GitHub
commit 541cdf8a7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}