build pb shell
This commit is contained in:
@@ -25,7 +25,7 @@ func New(grpcServ *grpc.Server) *Server {
|
||||
|
||||
srv := &Server{
|
||||
Ctx: context.Background(),
|
||||
Grpc: grpcServ,
|
||||
Grpc: grpc.NewServer(),
|
||||
grpcConns: make(map[string]*grpc.ClientConn),
|
||||
}
|
||||
|
||||
@@ -36,6 +36,8 @@ func New(grpcServ *grpc.Server) *Server {
|
||||
pb.RegisterRegisterServer(srv.Grpc, NewRegisterServer())
|
||||
pb.RegisterVerifyServer(srv.Grpc, NewVerifyServer())
|
||||
|
||||
reflection.Register(srv.Grpc)
|
||||
|
||||
if standalone {
|
||||
reflection.Register(srv.Grpc)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user