aa
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user