up
This commit is contained in:
		
							parent
							
								
									f259bcd4ad
								
							
						
					
					
						commit
						61a7837375
					
				@ -262,7 +262,7 @@ func (core *Core) SaveToSortSet(period string, keyName string, extt time.Duratio
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		fmt.Println("err of ma7|ma30 add to redis:", err)
 | 
			
		||||
	} else {
 | 
			
		||||
		fmt.Println("sortedSet add to redis:", rs, keyName)
 | 
			
		||||
		fmt.Println("sortedSet added to redis:", rs, keyName)
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -29,3 +29,7 @@ func (wg *WriteLog) Process(cr *Core) error {
 | 
			
		||||
	}()
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
module phyer.click/texus
 | 
			
		||||
module phyer.click/texus
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										2
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.go
									
									
									
									
									
								
							@ -125,7 +125,7 @@ func LoopAllCoinsList(period int64, delay int64, mdura int, barPeriod string, on
 | 
			
		||||
	go func() {
 | 
			
		||||
		for {
 | 
			
		||||
			tsi := time.Now().Unix()
 | 
			
		||||
			fmt.Println("tsi, period, delay, tsi%(period): ", tsi, period, delay, tsi%(period))
 | 
			
		||||
			//fmt.Println("tsi, period, delay, tsi%(period): ", tsi, period, delay, tsi%(period))
 | 
			
		||||
			if tsi%(period) != delay {
 | 
			
		||||
				time.Sleep(1 * time.Second)
 | 
			
		||||
				continue
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user