mirror of
https://github.com/kopia/kopia.git
synced 2026-10-26 16:18:53 -04:00
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:
1 parent
67f87a5450
commit
09415e0c7d
120 files changed
+234
-372
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user