From 0897a63aa7e0a904bf37c480ba285be254da7d5b Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Fri, 28 Apr 2017 21:22:02 -0700 Subject: [PATCH] server: don't nil pointer deref --- server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.go b/server/server.go index 55dafb6..4b075ba 100644 --- a/server/server.go +++ b/server/server.go @@ -89,7 +89,7 @@ func New(cfg Config) (*Server, error) { s.ts = ts go ts.ListenAndServe() - var gs *grpc.Server + gs := grpc.NewServer() proto.RegisterRoutesServer(gs, &Route{Server: s}) proto.RegisterTokensServer(gs, &Token{Server: s})