Fix typos in comments
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
# Description
|
# Description
|
||||||
The route guide server and client demonstrates how to use grpc go libraries to
|
The route guide server and client demonstrate how to use grpc go libraries to
|
||||||
perform unary, client streaming, server streaming and full duplex RPCs.
|
perform unary, client streaming, server streaming and full duplex RPCs.
|
||||||
|
|
||||||
See the definition of the route guide service in proto/route_guide.proto.
|
See the definition of the route guide service in proto/route_guide.proto.
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Package main implements a simple grpc client that demonstrates how to use grpc go libraries
|
// Package main implements a simple gRPC client that demonstrates how to use gRPC-Go libraries
|
||||||
// to perform unary, client streaming, server streaming and full duplex RPCs.
|
// to perform unary, client streaming, server streaming and full duplex RPCs.
|
||||||
//
|
//
|
||||||
// It interacts with the route guide service whose definition can be found in proto/route_guide.proto.
|
// It interacts with the route guide service whose definition can be found in proto/route_guide.proto.
|
||||||
@ -127,13 +127,13 @@ func runRouteChat(client pb.RouteGuideClient) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("%v.RouteChat(_) = _, %v", client, err)
|
log.Fatalf("%v.RouteChat(_) = _, %v", client, err)
|
||||||
}
|
}
|
||||||
waitc := make(chan int)
|
waitc := make(chan struct{})
|
||||||
go func() {
|
go func() {
|
||||||
for {
|
for {
|
||||||
in, err := stream.Recv()
|
in, err := stream.Recv()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
// read done.
|
// read done.
|
||||||
waitc <- 1
|
close(waitc)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Package main implements a simple grpc server that demonstrates how to use grpc go libraries
|
// Package main implements a simple gRPC server that demonstrates how to use gRPC-Go libraries
|
||||||
// to perform unary, client streaming, server streaming and full duplex RPCs.
|
// to perform unary, client streaming, server streaming and full duplex RPCs.
|
||||||
//
|
//
|
||||||
// It implements the route guide service whose definition can be found in proto/route_guide.proto.
|
// It implements the route guide service whose definition can be found in proto/route_guide.proto.
|
||||||
|
Reference in New Issue
Block a user