switch to uint64 cause native word length

This commit is contained in:
2026-05-06 20:08:04 -06:00
parent 8a2e6756cc
commit 3505f0e059
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -10,7 +10,8 @@ import (
func (c *Cache) nextMirror() string {
idx := c.mirrorIdx.Add(1) - 1
return c.cfg.mirrorURLs[idx%uint32(len(c.cfg.mirrorURLs))]
mirrorCount := uint64(len(c.cfg.mirrorURLs))
return c.cfg.mirrorURLs[idx%mirrorCount]
}
func downloadToDisk(url, destPath string, c http.Client) error {