From 91388f85e886d22fd67c62f7f7e2244d3c89effc Mon Sep 17 00:00:00 2001 From: "zhangkun9038@dingtalk.com" Date: Sun, 15 Dec 2024 20:42:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89Series=E7=9B=B8=E5=85=B3struc?= =?UTF-8?q?t=E5=AE=9A=E4=B9=89=E4=BB=A5=E5=8F=8A=E5=91=A8=E8=BE=B9?= =?UTF-8?q?=EF=BC=8C=E4=BB=A5=E5=90=8E=E5=86=8D=E8=AF=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coaster.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/coaster.go b/coaster.go index 62e9f2c..f5d65ec 100644 --- a/coaster.go +++ b/coaster.go @@ -47,8 +47,8 @@ func (co Coaster) RPushSample(cr *Core, sp Sample, ctype string) (*Sample, error now := time.Now().UnixMilli() co.LastUpdateTime = now co.CandleList.LastUpdateTime = now - co.UpdateNickName = utils.GetRandomString(12) - co.CandleList.UpdateNickName = utils.GetRandomString(12) + co.UpdateNickName = GetRandomString(12) + co.CandleList.UpdateNickName = GetRandomString(12) } return &sm, err } @@ -59,7 +59,7 @@ func (co Coaster) RPushSample(cr *Core, sp Sample, ctype string) (*Sample, error if err == nil { now := time.Now().UnixMilli() co.LastUpdateTime = now - co.Ma7List.UpdateNickName = utils.GetRandomString(12) + co.Ma7List.UpdateNickName = GetRandomString(12) co.Ma7List.LastUpdateTime = now } return &sm, err @@ -71,7 +71,7 @@ func (co Coaster) RPushSample(cr *Core, sp Sample, ctype string) (*Sample, error if err == nil { now := time.Now().UnixMilli() co.LastUpdateTime = now - co.Ma30List.UpdateNickName = utils.GetRandomString(12) + co.Ma30List.UpdateNickName = GetRandomString(12) co.Ma30List.LastUpdateTime = now } return &sm, err @@ -110,12 +110,12 @@ func (coi *CoasterInfo) Process(cr *Core) { } //实例化完一个tray之后,拿着这个tray去执行Analytics方法 // - srsinfo := SeriesInfo{ - InstID: curCo.InstID, - Period: curCo.Period, - } - - cr.SeriesChan <- &srsinfo + // srsinfo := SeriesInfo{ + // InstID: curCo.InstID, + // Period: curCo.Period, + // } + // + // cr.SeriesChan <- &srsinfo }(curCo) go func(co Coaster) {