尝试给上报到elasticsearch的文档加_id
This commit is contained in:
		
							parent
							
								
									28358ff4d9
								
							
						
					
					
						commit
						46a2136617
					
				@ -249,7 +249,7 @@ func (cl *Candle) SetToKey(core *Core) ([]interface{}, error) {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
	redisCli := core.RedisCli
 | 
						redisCli := core.RedisCli
 | 
				
			||||||
	// tm := time.UnixMilli(tsi).Format("2006-01-02 15:04")
 | 
						// 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()
 | 
						redisCli.Set(keyName, dt, extt).Result()
 | 
				
			||||||
	core.SaveUniKey(cl.Period, keyName, extt, tsi, cl)
 | 
						core.SaveUniKey(cl.Period, keyName, extt, tsi, cl)
 | 
				
			||||||
	return cl.Data, err
 | 
						return cl.Data, err
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user