From 229dfd6d9c5e7143477add9da723f6a87cc104ba Mon Sep 17 00:00:00 2001 From: iamqizhao Date: Wed, 25 Feb 2015 17:11:19 -0800 Subject: [PATCH] fix helloworld README and update the generated code --- README.md | 2 +- helloworld/helloworld.pb.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9fc49474..831cc10c 100644 --- a/README.md +++ b/README.md @@ -45,5 +45,5 @@ OPTIONAL - Rebuilding the generated code $ go get -a github.com/golang/protobuf/protoc-gen-go $ $ # from this dir; invoke protoc -$ protoc -I ../protos ../protos/helloworld.proto --go_out=plugins=grpc:. +$ protoc -I ../protos ../protos/helloworld.proto --go_out=plugins=grpc:helloworld ``` diff --git a/helloworld/helloworld.pb.go b/helloworld/helloworld.pb.go index 399adda5..37b659ec 100644 --- a/helloworld/helloworld.pb.go +++ b/helloworld/helloworld.pb.go @@ -66,7 +66,7 @@ func NewGreeterClient(cc *grpc.ClientConn) GreeterClient { func (c *greeterClient) SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) { out := new(HelloReply) - err := grpc.Invoke(ctx, "/helloworld.Greeter/sayHello", in, out, c.cc, opts...) + err := grpc.Invoke(ctx, "/helloworld.Greeter/SayHello", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -101,7 +101,7 @@ var _Greeter_serviceDesc = grpc.ServiceDesc{ HandlerType: (*GreeterServer)(nil), Methods: []grpc.MethodDesc{ { - MethodName: "sayHello", + MethodName: "SayHello", Handler: _Greeter_SayHello_Handler, }, },