Compare commits

..
2 Commits
Author SHA1 Message Date
gmp 94d448e905 Merge branch 'main' of https://git.wow.st/gmp/goget 2025-01-26 11:27:36 -05:00
gmp 4ab2371198 Tweak timing and retry on copy error. 2025-01-26 11:25:11 -05:00
+4 -3
View File
@@ -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()