Remove unused ticker

This commit is contained in:
Xpl0itU 2024-04-11 13:18:14 +02:00
parent 55795bda44
commit 3c9bc3bb8b

View file

@ -33,8 +33,6 @@ func downloadFile(ctx context.Context, progressReporter ProgressReporter, client
filePath := filepath.Base(dstPath) filePath := filepath.Base(dstPath)
startTime := time.Now() startTime := time.Now()
ticker := time.NewTicker(50 * time.Millisecond)
defer ticker.Stop()
for attempt := 1; attempt <= maxRetries; attempt++ { for attempt := 1; attempt <= maxRetries; attempt++ {
req, err := http.NewRequestWithContext(ctx, "GET", downloadURL, nil) req, err := http.NewRequestWithContext(ctx, "GET", downloadURL, nil)