liujiandao
2024-03-15 38e5627134a81c831d4867ef4085b2bda9291b24
model/grpc_init/crm_aps_init.go
@@ -10,7 +10,6 @@
var (
   ProductInventoryServiceConn *grpc.ClientConn
   CrmApsGrpcServiceConn       *grpc.ClientConn
   CrmSrmGrpcServiceConn       *grpc.ClientConn
)
func InitCrmApsGrpcServiceConn() {
@@ -40,20 +39,5 @@
func CloseProductInventoryServiceConn() {
   if ProductInventoryServiceConn != nil {
      ProductInventoryServiceConn.Close()
   }
}
func InitCrmSrmGrpcServiceConn() {
   var err error
   CrmSrmGrpcServiceConn, err = grpc.Dial(conf.Conf.GrpcServiceAddr.SRM, grpc.WithTransportCredentials(insecure.NewCredentials()))
   if err != nil {
      logx.Errorf("grpc dial product service error: %v", err.Error())
      return
   }
}
func CloseCrmSrmGrpcServiceConn() {
   if CrmSrmGrpcServiceConn != nil {
      CrmSrmGrpcServiceConn.Close()
   }
}