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:
parent
1d13c6f463
commit
793638f488
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user