排查2D周期sortedSet周期间隔不统一的问题

This commit is contained in:
zhangkun9038@dingtalk.com 2025-01-19 04:51:30 +08:00
parent e51c02a80c
commit b8e283e55d

View File

@ -197,9 +197,9 @@ func (core *Core) SaveCandle(instId string, period string, rsp *CandleData, dura
if cs.Seg == period {
curSegStartTime = cs.StartTime
}
break
}
}
logrus.Warn("curSegStartTime:", curSegStartTime)
curTm, _ := time.ParseInLocation("2006-01-02 15:04.000", curSegStartTime, time.Local)
curTmi := curTm.UnixMilli()