From 8ec74634b68695fc8208318ddd319dcc9e3f3f1d Mon Sep 17 00:00:00 2001 From: Vilsol Date: Sat, 23 Dec 2023 04:51:50 +0200 Subject: [PATCH] chore: if you get a single update now I call bs --- cli/cache/download.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/cache/download.go b/cli/cache/download.go index dfc18ce..6f9bcef 100644 --- a/cli/cache/download.go +++ b/cli/cache/download.go @@ -157,7 +157,7 @@ func downloadInternal(cacheKey string, location string, hash string, url string, } defer headResp.Body.Close() slog.Debug("sending start", slog.Int64("length", headResp.ContentLength), slog.String("cacheKey", cacheKey)) - updates <- utils.GenericProgress{Total: headResp.ContentLength} + //updates <- utils.GenericProgress{Total: headResp.ContentLength} } if downloadSemaphore != nil { @@ -195,7 +195,7 @@ func downloadInternal(cacheKey string, location string, hash string, url string, if updates != nil { slog.Debug("sending end", slog.Int64("length", resp.ContentLength), slog.String("cacheKey", cacheKey)) - updates <- utils.GenericProgress{Completed: resp.ContentLength, Total: resp.ContentLength} + //updates <- utils.GenericProgress{Completed: resp.ContentLength, Total: resp.ContentLength} } _, err = addFileToCache(cacheKey)