fix helloworld README and update the generated code

This commit is contained in:
iamqizhao
2015-02-25 17:11:19 -08:00
parent f33424dbca
commit 229dfd6d9c
2 changed files with 3 additions and 3 deletions

View File

@ -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
```

View File

@ -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,
},
},