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

This commit is contained in:
zhangkun9038@dingtalk.com 2025-01-19 04:27:44 +08:00
parent ffc18606c4
commit 9e3bc61fc2

@ -193,7 +193,7 @@ func (core *Core) SaveCandle(instId string, period string, rsp *CandleData, dura
} }
sv, _ := json.Marshal(v) sv, _ := json.Marshal(v)
json.Unmarshal(sv, &cs) json.Unmarshal(sv, &cs)
logrus.Warn("fetch segments2:", cs) logrus.Warn("fetch segments2: cs.Seg", cs.Seg, ", period:", period)
if cs.Seg == period { if cs.Seg == period {
curSegStartTime = cs.StartTime curSegStartTime = cs.StartTime