From 44bba3c3479d8b9cd04ef4087762f9f960c5bb55 Mon Sep 17 00:00:00 2001 From: jiangshuai <291802688@qq.com> Date: 星期四, 23 十一月 2023 20:17:10 +0800 Subject: [PATCH] 获取客户列表grpc客户端 --- main.go | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/main.go b/main.go index d4a15c9..91c2eeb 100644 --- a/main.go +++ b/main.go @@ -14,6 +14,7 @@ "wms/controllers" "wms/models" "wms/pkg/logx" + "wms/proto/client" "wms/proto/product_inventory" "wms/proto/purchase_wms" "wms/proto/supplier" @@ -51,6 +52,7 @@ go controllers.InitProductInventoryServiceConn() go controllers.InitCodeServiceConn() go supplier.InitConn() + go client.InitConn() //鍚姩grpc鏈嶅姟 go func() { ln, err := net.Listen("tcp", ":"+conf.WebConf.GrpcPort) @@ -90,6 +92,7 @@ controllers.CloseProductInventoryServiceConn() controllers.CloseCodeServiceConn() supplier.CloseConn() + client.CloseConn() // 鍏抽棴HTTP鏈嶅姟鍣� if err := server.Shutdown(ctx); err != nil { logx.Infof("鏈嶅姟浼橀泤閫�鍑哄け璐�: %v", err) -- Gitblit v1.8.0