diff --git a/ch4-rpc/ch4-04-grpc.md b/ch4-rpc/ch4-04-grpc.md index c338720..535386d 100644 --- a/ch4-rpc/ch4-04-grpc.md +++ b/ch4-rpc/ch4-04-grpc.md @@ -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) }