Compare commits
	
		
			2 Commits
		
	
	
		
			43cd0c4308
			...
			94d448e905
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 94d448e905 | |||
| 4ab2371198 | 
							
								
								
									
										7
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								main.go
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -17,7 +17,7 @@ var (
 | 
			
		|||
	clk chan bool
 | 
			
		||||
	wg sync.WaitGroup
 | 
			
		||||
 | 
			
		||||
	freq = time.Second * 15
 | 
			
		||||
	freq = time.Second
 | 
			
		||||
	throttle bool
 | 
			
		||||
	errs map[string]int
 | 
			
		||||
	mu sync.Mutex
 | 
			
		||||
| 
						 | 
				
			
			@ -61,8 +61,9 @@ func get_(symbol string) (error) {
 | 
			
		|||
	_, err = io.Copy(out, resp.Body)
 | 
			
		||||
	resp.Body.Close()
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		fmt.Println("Error copying to file.")
 | 
			
		||||
		os.Exit(-1)
 | 
			
		||||
		fmt.Printf("%s: Error copying to file.", symbol)
 | 
			
		||||
		err_(symbol,1)
 | 
			
		||||
		return fmt.Errorf("%s", resp.Status)
 | 
			
		||||
	}
 | 
			
		||||
	out.WriteString("\n")
 | 
			
		||||
	out.Close()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user