1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-27 23:12:20 +00:00

fixed code

This commit is contained in:
sfw 2018-08-06 21:20:54 +08:00
parent 1d13c6f463
commit 793638f488

View File

@ -368,7 +368,7 @@ func main() {
defer conn.Close()
client := NewPubsubServiceClient(conn)
stream, err := client.Channel(context.Background(), &String{Value: "golang:"})
stream, err := client.SubscribeTopic(context.Background(), &String{Value: "golang:"})
if err != nil {
log.Fatal(err)
}