This commit is contained in:
suyl
2021-06-29 09:16:47 +08:00
parent 341afec0b7
commit ed7e2b2c69
2 changed files with 3 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ import (
"strconv"
"strings"
"sync"
"time"
)
const (
@@ -153,8 +154,8 @@ func HandleTcpMessages() {
for {
//一直读?
var err error
time.Sleep(time.Second / 2)
prints, _ := dao.GetPrintMsgs(db, printMsgWait, offset, pageSize)
globals.SugarLogger.Debugf("HandleTcpMessages, len prints: [%v]", len(prints))
for _, printMsg := range prints {
if printMsg != nil {
if err = checkPrintMsg(printMsg); err == nil {