Compare commits

..

No commits in common. "2a93e1cc384b456a28b4a2f6f1f90e6d3d5bae20" and "679154720f57e6089e84b6e02639501ca7b456d3" have entirely different histories.

3 changed files with 3 additions and 3 deletions

View File

@ -144,7 +144,6 @@ func (t *TcpHelper) watch(conn net.Conn) {
} else {
atomic.StoreInt32(t.Full, 1)
utils.Log(nil, "连接关闭", err)
t.reconnect(config.GetConf().OrderPort)
}
}
time.Sleep(1 * time.Second)

View File

@ -95,7 +95,7 @@ func (kk KafkaV2Mq) Consume(name string, hand interface{}, ci int) {
go func() {
for {
if atomic.LoadInt32(tcppool.TcpFactory.Full) == 1 {
//utils.Log(nil, "对列阻塞")
utils.Log(nil, "对列阻塞")
time.Sleep(100 * time.Millisecond)
continue
} else {

View File

@ -9,6 +9,7 @@ import (
func Log(c *gin.Context, name string, msg ...interface{}) {
_, file, line, _ := runtime.Caller(1)
var datetime = time.Now().Format(time.DateTime)
timeLayout := "2006-01-01 03:04:05" //转化所需模板
var datetime = time.Unix(time.Now().Unix(), 0).Format(timeLayout)
fmt.Println(name, msg, file, line, datetime)
}