From 3c9bc3bb8b6ed1f4778b9c5f471cc8b000bc33d3 Mon Sep 17 00:00:00 2001 From: Xpl0itU <24777100+Xpl0itU@users.noreply.github.com> Date: Thu, 11 Apr 2024 13:18:14 +0200 Subject: [PATCH] Remove unused ticker --- downloader.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/downloader.go b/downloader.go index 8d8864d..005dd81 100644 --- a/downloader.go +++ b/downloader.go @@ -33,8 +33,6 @@ func downloadFile(ctx context.Context, progressReporter ProgressReporter, client filePath := filepath.Base(dstPath) startTime := time.Now() - ticker := time.NewTicker(50 * time.Millisecond) - defer ticker.Stop() for attempt := 1; attempt <= maxRetries; attempt++ { req, err := http.NewRequestWithContext(ctx, "GET", downloadURL, nil)