排查2D周期sortedSet周期间隔不统一的问题
This commit is contained in:
parent
9e3bc61fc2
commit
5c4fdc8e9e
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user