尝试给上报到elasticsearch的文档加_id

This commit is contained in:
zhangkun 2024-12-04 12:59:41 +08:00
parent 28358ff4d9
commit 46a2136617
2 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ func (cl *Candle) SetToKey(core *Core) ([]interface{}, error) {
}
redisCli := core.RedisCli
// tm := time.UnixMilli(tsi).Format("2006-01-02 15:04")
// fmt.Println("setToKey:", keyName, "ts: ", tm, "price: ", curPrice, "from:", cl.From)
fmt.Println("setToKey:", keyName, "ts: ", "price: ", curPrice, "from:", cl.From)
redisCli.Set(keyName, dt, extt).Result()
core.SaveUniKey(cl.Period, keyName, extt, tsi, cl)
return cl.Data, err

BIN
tunas

Binary file not shown.