chore(ci): upgraded to go 1.22 (#3746)

Upgrades go to 1.22 and switches to new-style for loops

---------

Co-authored-by: Julio López <1953782+julio-lopez@users.noreply.github.com>
This commit is contained in:
Jarek KowalskiandJulio López authored and GitHub committed 2024-04-08 09:52:47 -07:00
1 parent 67f87a5450
commit 09415e0c7d
120 files changed
+234 -372

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ func (c *commandCacheSync) run(ctx context.Context, rep repo.DirectRepositoryWri
ch := make(chan blob.ID, c.parallel)
// workers that will prefetch blobs.
for i := 0; i < c.parallel; i++ {
for range c.parallel {
eg.Go(func() error {
for blobID := range ch {
if err := rep.ContentManager().MetadataCache().PrefetchBlob(ctx, blobID); err != nil {