mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-08-10 13:09:51 +08:00
errcode
This commit is contained in:
parent
803ecd3f92
commit
848e861304
@ -43,8 +43,9 @@ type groupServer struct {
|
|||||||
etcdAddr []string
|
etcdAddr []string
|
||||||
controller.GroupInterface
|
controller.GroupInterface
|
||||||
|
|
||||||
userRpc pbUser.UserClient
|
etcdConn *getcdv3.EtcdConn
|
||||||
conversationRpc pbConversation.ConversationClient
|
//userRpc pbUser.UserClient
|
||||||
|
//conversationRpc pbConversation.ConversationClient
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewGroupServer(port int) *groupServer {
|
func NewGroupServer(port int) *groupServer {
|
||||||
@ -65,12 +66,12 @@ func NewGroupServer(port int) *groupServer {
|
|||||||
panic("NewEtcdConn failed" + err.Error())
|
panic("NewEtcdConn failed" + err.Error())
|
||||||
}
|
}
|
||||||
etcdClient.SetDefaultEtcdConfig(config.Config.RpcRegisterName.OpenImUserName, config.Config.RpcPort.OpenImUserPort)
|
etcdClient.SetDefaultEtcdConfig(config.Config.RpcRegisterName.OpenImUserName, config.Config.RpcPort.OpenImUserPort)
|
||||||
conn := etcdClient.GetConn("", config.Config.RpcRegisterName.OpenImUserName)
|
//conn := etcdClient.GetConn("", config.Config.RpcRegisterName.OpenImUserName)
|
||||||
g.userRpc = pbUser.NewUserClient(conn)
|
//g.userRpc = pbUser.NewUserClient(conn)
|
||||||
|
|
||||||
etcdClient.SetDefaultEtcdConfig(config.Config.RpcRegisterName.OpenImConversationName, config.Config.RpcPort.OpenImConversationPort)
|
etcdClient.SetDefaultEtcdConfig(config.Config.RpcRegisterName.OpenImConversationName, config.Config.RpcPort.OpenImConversationPort)
|
||||||
conn = etcdClient.GetConn("", config.Config.RpcRegisterName.OpenImConversationName)
|
//conn = etcdClient.GetConn("", config.Config.RpcRegisterName.OpenImConversationName)
|
||||||
g.conversationRpc = pbConversation.NewConversationClient(conn)
|
//g.conversationRpc = pbConversation.NewConversationClient(conn)
|
||||||
|
|
||||||
//mysql init
|
//mysql init
|
||||||
var mysql relation.Mysql
|
var mysql relation.Mysql
|
||||||
@ -903,7 +904,7 @@ func (s *groupServer) SetGroupInfo(ctx context.Context, req *pbGroup.SetGroupInf
|
|||||||
conversation.GroupAtType = constant.GroupNotification
|
conversation.GroupAtType = constant.GroupNotification
|
||||||
conversationReq.UserIDList = cacheResp.UserIDList
|
conversationReq.UserIDList = cacheResp.UserIDList
|
||||||
|
|
||||||
_, err := s.conversationRpc.ModifyConversationField(ctx, &conversationReq)
|
_, err = pbConversation.NewConversationClient(s.etcdConn.GetConn("", config.Config.RpcRegisterName.OpenImConversationName)).ModifyConversationField(ctx, &conversationReq)
|
||||||
tracelog.SetCtxInfo(ctx, "ModifyConversationField", err, "req", &conversationReq, "resp", conversationReply)
|
tracelog.SetCtxInfo(ctx, "ModifyConversationField", err, "req", &conversationReq, "resp", conversationReply)
|
||||||
}
|
}
|
||||||
return resp, nil
|
return resp, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user