Skip to content

Commit

Permalink
chore: if you get a single update now I call bs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Dec 23, 2023
1 parent 4af64b4 commit 8ec7463
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/cache/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Check failure on line 160 in cli/cache/download.go

View workflow job for this annotation

GitHub Actions / Lint

commentFormatting: put a space between `//` and comment text (gocritic)
}

if downloadSemaphore != nil {
Expand Down Expand Up @@ -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}

Check failure on line 198 in cli/cache/download.go

View workflow job for this annotation

GitHub Actions / Lint

commentFormatting: put a space between `//` and comment text (gocritic)
}

_, err = addFileToCache(cacheKey)
Expand Down

0 comments on commit 8ec7463

Please sign in to comment.