mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
office tag async send
This commit is contained in:
parent
888c837cdd
commit
9913e67928
@ -102,10 +102,12 @@ type tagSendStruct struct {
|
|||||||
|
|
||||||
func (s *officeServer) sendTagMsgRoutine() {
|
func (s *officeServer) sendTagMsgRoutine() {
|
||||||
log.NewInfo("", utils.GetSelfFuncName(), "start")
|
log.NewInfo("", utils.GetSelfFuncName(), "start")
|
||||||
select {
|
for {
|
||||||
case v := <-s.ch:
|
select {
|
||||||
msg.TagSendMessage(v.operationID, v.user, v.userID, v.content, v.senderPlatformID)
|
case v := <-s.ch:
|
||||||
time.Sleep(time.Millisecond * 500)
|
msg.TagSendMessage(v.operationID, v.user, v.userID, v.content, v.senderPlatformID)
|
||||||
|
time.Sleep(time.Millisecond * 500)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user