排查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()
|
||||
logrus.Warn("lensof segments:", len(segments))
|
||||
curSegStartTime := ""
|
||||
for _, v := range segments {
|
||||
for k, v := range segments {
|
||||
logrus.Warn("fetch segments:", k, v)
|
||||
cs := CandleSegment{}
|
||||
sv, _ := json.Marshal(v)
|
||||
json.Unmarshal(sv, &cs)
|
||||
logrus.Warn("fetch segments2:", cs)
|
||||
if !cs.Enabled {
|
||||
continue
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user