Commit 885148b8 authored by hujiebin's avatar hujiebin

feat多加一个mode

parent c46bdb98
......@@ -137,14 +137,14 @@ func init() {
conn, err := grpc.Dial(userCenterAddr, grpc.WithInsecure(), grpc.WithBlock(), grpc.WithKeepaliveParams(kacp),
grpc.WithDefaultServiceConfig(fmt.Sprintf(`{"LoadBalancingPolicy":"%s"}`, "round_robin")))
if err != nil {
msg := fmt.Sprintf("连接userCenter失败:%v", err)
msg := fmt.Sprintf("mode:%v,连接userCenter失败:%v", config.GetMode(), err)
dingding.SendDingRobot(dingding.ROBOTWEBHOOK, msg, true)
mylogrus.MyLog.Fatalf(msg)
}
//defer conn.Close()
userClient = userCenter.NewUserClient(conn)
if userClient == nil {
msg := "userClient null"
msg := fmt.Sprintf("mode:%v,userClient null", config.GetMode())
dingding.SendDingRobot(dingding.ROBOTWEBHOOK, msg, true)
mylogrus.MyLog.Fatalln(msg)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment