|
|
|
@ -128,7 +128,7 @@ func (rpc *rpcAuth) Run() {
|
|
|
|
|
log.NewInfo(operationID, "listen network success, ", address, listener)
|
|
|
|
|
var grpcOpts []grpc.ServerOption
|
|
|
|
|
if config.Config.Prometheus.Enable {
|
|
|
|
|
grpcOpts = append(grpcOpts, promePkg.UnaryServerInterceptorProme)
|
|
|
|
|
grpcOpts = append(grpcOpts, grpc.UnaryInterceptor(promePkg.UnaryServerInterceptorProme))
|
|
|
|
|
}
|
|
|
|
|
srv := grpc.NewServer(grpcOpts...)
|
|
|
|
|
defer srv.GracefulStop()
|
|
|
|
|