去掉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() | ||||
| 			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) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zhangkun9038@dingtalk.com
						zhangkun9038@dingtalk.com