尝试关掉InvokeCandle,观察是否对insertPlate以及整体性能有影响

This commit is contained in:
zhangkun9038@dingtalk.com 2025-01-15 01:25:06 +08:00
parent 4a736d2b66
commit 0dc5e87feb

View File

@ -462,9 +462,9 @@ func MakeMaX(cr *core.Core, cl *core.Candle, count int) (error, int) {
// cdl, err := cr.GetLastCandleListOfCoin(cl.InstID, cl.Period, count, lastTime)
cdl, err := GetRangeCandleSortedSet(cr, setName, count, lastTime)
if err != nil {
to, _ := cr.PeriodToMinutes(cl.Period)
to = tsi + to*ToInt64(count)
InvokeCandle(cr, cl.InstID, cl.Period, tsi, to)
// to, _ := cr.PeriodToMinutes(cl.Period)
// to = tsi + to*ToInt64(count)
// InvokeCandle(cr, cl.InstID, cl.Period, tsi, to)
return err, 0
}