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