server: don't nil pointer deref

This commit is contained in:
Cadey Ratio 2017-04-28 21:22:02 -07:00
parent 102feb4b94
commit 0897a63aa7
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ func New(cfg Config) (*Server, error) {
s.ts = ts s.ts = ts
go ts.ListenAndServe() go ts.ListenAndServe()
var gs *grpc.Server gs := grpc.NewServer()
proto.RegisterRoutesServer(gs, &Route{Server: s}) proto.RegisterRoutesServer(gs, &Route{Server: s})
proto.RegisterTokensServer(gs, &Token{Server: s}) proto.RegisterTokensServer(gs, &Token{Server: s})