add lastUpdate to candle and max

This commit is contained in:
zhangkun9038@dingtalk.com 2024-12-18 14:44:49 +08:00
parent 49b7411728
commit 9742ded5b3
2 changed files with 2 additions and 0 deletions

@ -215,6 +215,7 @@ func (candle *Candle) PushToWriteLogChan(cr *Core) error {
ncd, _ := candle.ToStruct(cr)
fmt.Println("ncd: ", ncd)
cd, _ := json.Marshal(ncd)
candle = ncd
wg := WriteLog{
Content: cd,
Tag: "sardine.log.candle." + candle.Period,

1
maX.go

@ -102,6 +102,7 @@ func (mx *MaX) PushToWriteLogChan(cr *Core) error {
mx0.LastUpdate = mx.LastUpdate
hs := HashString(did)
md, _ := json.Marshal(mx0)
mx = &mx0
wg := WriteLog{
Content: md,
Tag: "sardine.log.maX." + mx0.Period,