update readme
This commit is contained in:
parent
8fb5e20a22
commit
b33489e481
@ -192,7 +192,7 @@ func main() {
|
|||||||
service.Init()
|
service.Init()
|
||||||
|
|
||||||
// Create new greeter client
|
// Create new greeter client
|
||||||
greeter := proto.GreeterServiceClient("greeter", service.Client())
|
greeter := proto.NewGreeterService("greeter", service.Client())
|
||||||
|
|
||||||
// Call the greeter
|
// Call the greeter
|
||||||
rsp, err := greeter.Hello(context.TODO(), &proto.HelloRequest{Name: "John"})
|
rsp, err := greeter.Hello(context.TODO(), &proto.HelloRequest{Name: "John"})
|
||||||
|
Loading…
Reference in New Issue
Block a user