diff options
Diffstat (limited to 'go')
-rw-r--r-- | go/greeter_server/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/go/greeter_server/main.go b/go/greeter_server/main.go index 643524bde7..231f5c607b 100644 --- a/go/greeter_server/main.go +++ b/go/greeter_server/main.go @@ -55,11 +55,11 @@ func (s *server) SayHello(ctx context.Context, in *pb.HelloRequest) (*pb.HelloRe } func main() { - l, err := net.Listen("tcp", port) + lis, err := net.Listen("tcp", port) if err != nil { log.Fatalf("failed to listen: %v", err) } s := grpc.NewServer() pb.RegisterGreeterServer(s, &server{}) - s.Serve(l) + s.Serve(lis) } |