office tag async send

This commit is contained in:
wangchuxiao 2022-05-18 15:16:44 +08:00
parent 888c837cdd
commit 9913e67928

View File

@ -102,10 +102,12 @@ type tagSendStruct struct {
func (s *officeServer) sendTagMsgRoutine() {
log.NewInfo("", utils.GetSelfFuncName(), "start")
select {
case v := <-s.ch:
msg.TagSendMessage(v.operationID, v.user, v.userID, v.content, v.senderPlatformID)
time.Sleep(time.Millisecond * 500)
for {
select {
case v := <-s.ch:
msg.TagSendMessage(v.operationID, v.user, v.userID, v.content, v.senderPlatformID)
time.Sleep(time.Millisecond * 500)
}
}
}