排查2D周期sortedSet周期间隔不统一的问题
This commit is contained in:
parent
ffaa4a545a
commit
c58cffe56e
@ -185,10 +185,12 @@ func (core *Core) SaveCandle(instId string, period string, rsp *CandleData, dura
|
|||||||
segments := core.Cfg.Config.Get("softCandleSegmentList").MustArray()
|
segments := core.Cfg.Config.Get("softCandleSegmentList").MustArray()
|
||||||
logrus.Warn("lensof segments:", len(segments))
|
logrus.Warn("lensof segments:", len(segments))
|
||||||
curSegStartTime := ""
|
curSegStartTime := ""
|
||||||
for _, v := range segments {
|
for k, v := range segments {
|
||||||
|
logrus.Warn("fetch segments:", k, v)
|
||||||
cs := CandleSegment{}
|
cs := CandleSegment{}
|
||||||
sv, _ := json.Marshal(v)
|
sv, _ := json.Marshal(v)
|
||||||
json.Unmarshal(sv, &cs)
|
json.Unmarshal(sv, &cs)
|
||||||
|
logrus.Warn("fetch segments2:", cs)
|
||||||
if !cs.Enabled {
|
if !cs.Enabled {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user