排查max push log 的时候id不唯一

This commit is contained in:
zhangkun9038@dingtalk.com 2024-12-20 11:25:19 +08:00
parent 45f83ca9b8
commit 23ee3859ae

2
maX.go
View File

@ -94,7 +94,7 @@ func Int64ToTime(ts int64) (time.Time, error) {
}
func (mx *MaX) PushToWriteLogChan(cr *Core) error {
s := strconv.FormatFloat(float64(mx.Ts), 'f', 0, 64)
did := mx.InstID + mx.Period + s
did := mx.InstID + "|" + mx.Period + "|" + s
logrus.Debug("did of max:", did)
mx0 := MaX{}
mx0.InstID = mx.InstID