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

This commit is contained in:
zhangkun9038@dingtalk.com 2025-01-19 04:35:38 +08:00
parent 9e3bc61fc2
commit 5c4fdc8e9e

View File

@ -188,11 +188,11 @@ func (core *Core) SaveCandle(instId string, period string, rsp *CandleData, dura
for k, v := range segments {
logrus.Warn("fetch segments:", k, v)
cs := CandleSegment{}
sv, _ := json.Marshal(v)
json.Unmarshal(sv, &cs)
if !cs.Enabled {
continue
}
sv, _ := json.Marshal(v)
json.Unmarshal(sv, &cs)
logrus.Warn("fetch segments2: cs.Seg", cs.Seg, ", period:", period)
if cs.Seg == period {