去掉Series相关struct定义以及周边,以后再说
This commit is contained in:
parent
0599d895ca
commit
91388f85e8
20
coaster.go
20
coaster.go
@ -47,8 +47,8 @@ func (co Coaster) RPushSample(cr *Core, sp Sample, ctype string) (*Sample, error
|
|||||||
now := time.Now().UnixMilli()
|
now := time.Now().UnixMilli()
|
||||||
co.LastUpdateTime = now
|
co.LastUpdateTime = now
|
||||||
co.CandleList.LastUpdateTime = now
|
co.CandleList.LastUpdateTime = now
|
||||||
co.UpdateNickName = utils.GetRandomString(12)
|
co.UpdateNickName = GetRandomString(12)
|
||||||
co.CandleList.UpdateNickName = utils.GetRandomString(12)
|
co.CandleList.UpdateNickName = GetRandomString(12)
|
||||||
}
|
}
|
||||||
return &sm, err
|
return &sm, err
|
||||||
}
|
}
|
||||||
@ -59,7 +59,7 @@ func (co Coaster) RPushSample(cr *Core, sp Sample, ctype string) (*Sample, error
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
now := time.Now().UnixMilli()
|
now := time.Now().UnixMilli()
|
||||||
co.LastUpdateTime = now
|
co.LastUpdateTime = now
|
||||||
co.Ma7List.UpdateNickName = utils.GetRandomString(12)
|
co.Ma7List.UpdateNickName = GetRandomString(12)
|
||||||
co.Ma7List.LastUpdateTime = now
|
co.Ma7List.LastUpdateTime = now
|
||||||
}
|
}
|
||||||
return &sm, err
|
return &sm, err
|
||||||
@ -71,7 +71,7 @@ func (co Coaster) RPushSample(cr *Core, sp Sample, ctype string) (*Sample, error
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
now := time.Now().UnixMilli()
|
now := time.Now().UnixMilli()
|
||||||
co.LastUpdateTime = now
|
co.LastUpdateTime = now
|
||||||
co.Ma30List.UpdateNickName = utils.GetRandomString(12)
|
co.Ma30List.UpdateNickName = GetRandomString(12)
|
||||||
co.Ma30List.LastUpdateTime = now
|
co.Ma30List.LastUpdateTime = now
|
||||||
}
|
}
|
||||||
return &sm, err
|
return &sm, err
|
||||||
@ -110,12 +110,12 @@ func (coi *CoasterInfo) Process(cr *Core) {
|
|||||||
}
|
}
|
||||||
//实例化完一个tray之后,拿着这个tray去执行Analytics方法
|
//实例化完一个tray之后,拿着这个tray去执行Analytics方法
|
||||||
//
|
//
|
||||||
srsinfo := SeriesInfo{
|
// srsinfo := SeriesInfo{
|
||||||
InstID: curCo.InstID,
|
// InstID: curCo.InstID,
|
||||||
Period: curCo.Period,
|
// Period: curCo.Period,
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
cr.SeriesChan <- &srsinfo
|
// cr.SeriesChan <- &srsinfo
|
||||||
}(curCo)
|
}(curCo)
|
||||||
|
|
||||||
go func(co Coaster) {
|
go func(co Coaster) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user