From 72f325986e4162b82f64caeb24a2ad8ea973e7e7 Mon Sep 17 00:00:00 2001 From: "zhangkun9038@dingtalk.com" Date: Thu, 26 Dec 2024 15:58:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=B8=AAbug=E8=B2=8C=E4=BC=BC?= =?UTF-8?q?=E5=B7=B2=E7=BB=8F=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- candle.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/candle.go b/candle.go index 7c3fc65..c761d82 100644 --- a/candle.go +++ b/candle.go @@ -179,7 +179,7 @@ func IsModOf(curInt int64, duration time.Duration) bool { func (core *Core) SaveCandle(instId string, period string, rsp *CandleData, dura time.Duration, withWs bool) { leng := len(rsp.Data) // fmt.Println("saveCandle leng: ", leng, " instId: ", instId, " period: ", period) - logrus.Info("saveCandle leng: ", leng, " instId: ", instId, " period: ", period, " length of rsp.Data: ", len(rsp.Data)) + logrus.Info("saveCandles leng: ", leng, " instId: ", instId, " period: ", period, " length of rsp.Data: ", len(rsp.Data)) for k, v := range rsp.Data { tmi := ToInt64(v[0]) last := ToInt64(v[4]) @@ -206,6 +206,7 @@ func (core *Core) SaveCandle(instId string, period string, rsp *CandleData, dura } // 如果candle都不需要存到redis,那么AddToGeneralCandleChnl也没有意义 saveCandle := os.Getenv("TEXUS_SAVECANDLE") + logrus.Info("saveCandles datas: k,v: ", k, v) if saveCandle == "true" { go func(k int) { time.Sleep(time.Duration(k*40) * time.Millisecond)