|
|
|
@ -171,24 +171,6 @@ func MsgToSuperGroupUser(pushMsg *pbPush.PushMsgReq) {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
pushToUserIDList = userIDList
|
|
|
|
|
//getGroupMemberIDListFromCacheReq := &pbCache.GetGroupMemberIDListFromCacheReq{OperationID: pushMsg.OperationID, GroupID: pushMsg.MsgData.GroupID}
|
|
|
|
|
//etcdConn := getcdv3.GetDefaultConn(config.Config.Etcd.EtcdSchema, strings.Join(config.Config.Etcd.EtcdAddr, ","), config.Config.RpcRegisterName.OpenImCacheName, pushMsg.OperationID)
|
|
|
|
|
//if etcdConn == nil {
|
|
|
|
|
// errMsg := pushMsg.OperationID + "getcdv3.GetDefaultConn == nil"
|
|
|
|
|
// log.NewError(pushMsg.OperationID, errMsg)
|
|
|
|
|
// return
|
|
|
|
|
//}
|
|
|
|
|
//client := pbCache.NewCacheClient(etcdConn)
|
|
|
|
|
//cacheResp, err := client.GetGroupMemberIDListFromCache(context.Background(), getGroupMemberIDListFromCacheReq)
|
|
|
|
|
//if err != nil {
|
|
|
|
|
// log.NewError(pushMsg.OperationID, "GetGroupMemberIDListFromCache rpc call failed ", err.Error())
|
|
|
|
|
// return
|
|
|
|
|
//}
|
|
|
|
|
//if cacheResp.CommonResp.ErrCode != 0 {
|
|
|
|
|
// log.NewError(pushMsg.OperationID, "GetGroupMemberIDListFromCache rpc logic call failed ", cacheResp.String())
|
|
|
|
|
// return
|
|
|
|
|
//}
|
|
|
|
|
//pushToUserIDList = cacheResp.UserIDList
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
grpcCons := getcdv3.GetDefaultGatewayConn4Unique(config.Config.Etcd.EtcdSchema, strings.Join(config.Config.Etcd.EtcdAddr, ","), pushMsg.OperationID)
|
|
|
|
|