1
This commit is contained in:
@@ -212,7 +212,7 @@ func (t *TcpClient) HandleTcpMessages(printNo string) {
|
||||
fn := func() {
|
||||
for {
|
||||
if t.TimeoutMap[printNo] == true {
|
||||
if time.Now().Unix()%3 == 0 {
|
||||
//if time.Now().Unix()%3 == 0 {
|
||||
timeNow := time.Now()
|
||||
timeStart := time.Date(timeNow.Year(), timeNow.Month(), timeNow.Day(), 0, 0, 0, 0, timeNow.Location())
|
||||
timeEnd := time.Date(timeNow.Year(), timeNow.Month(), timeNow.Day(), 23, 59, 59, 0, timeNow.Location())
|
||||
@@ -226,9 +226,9 @@ func (t *TcpClient) HandleTcpMessages(printNo string) {
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
continue
|
||||
}
|
||||
//} else {
|
||||
// continue
|
||||
//}
|
||||
} else {
|
||||
globals.SugarLogger.Debugf("HandleTcpMessages timeout")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user