aboutsummaryrefslogtreecommitdiffhomepage
path: root/go
diff options
context:
space:
mode:
authorGravatar Tim Emiola <temiola@google.com>2015-02-20 14:19:31 -0800
committerGravatar Tim Emiola <temiola@google.com>2015-02-20 14:19:31 -0800
commit8c0464dcf64507d028601abe97e003720c656922 (patch)
treeb0cd751b41b5c395e9f672d7446763f3b5e76e28 /go
parent4ee7225fbf09b1944dd2a4a31f35dae6f3929047 (diff)
Fixes var name
Diffstat (limited to 'go')
-rw-r--r--go/greeter_server/main.go4
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)
}