1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-28 23:42:21 +00:00

Merge pull request #232 from fuwensun/pr4-4-1b

fixed code
This commit is contained in:
chai2010 2018-08-06 21:23:44 +08:00 committed by GitHub
commit 8d89761128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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