server: don't nil pointer deref
This commit is contained in:
parent
102feb4b94
commit
0897a63aa7
|
@ -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})
|
||||||
|
|
Loading…
Reference in New Issue