1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-24 20:52:22 +00:00

fixed code

This commit is contained in:
sfw 2018-08-06 21:23:46 +08:00
parent 1d13c6f463
commit 02b868a883

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