mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-25 02:58:26 +08:00
office tag async send
This commit is contained in:
parent
9913e67928
commit
b0e349212d
@ -258,7 +258,7 @@ func (s *officeServer) SendMsg2Tag(_ context.Context, req *pbOffice.SendMsg2TagR
|
|||||||
user: user,
|
user: user,
|
||||||
userID: userID,
|
userID: userID,
|
||||||
content: req.Content,
|
content: req.Content,
|
||||||
senderPlatformID: 0,
|
senderPlatformID: req.SenderPlatformID,
|
||||||
}
|
}
|
||||||
select {
|
select {
|
||||||
case s.ch <- t:
|
case s.ch <- t:
|
||||||
@ -281,7 +281,7 @@ func (s *officeServer) SendMsg2Tag(_ context.Context, req *pbOffice.SendMsg2TagR
|
|||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
userName, err := im_mysql_model.GetUserNameByUserID(userID)
|
userName, err := im_mysql_model.GetUserNameByUserID(userID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetUserNameByUserID failed", err.Error())
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetUserNameByUserID failed", err.Error(), userID)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
lock.Lock()
|
lock.Lock()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user