added config struct for cache so we can change timeouts in testing

This commit is contained in:
2026-04-21 09:51:09 -06:00
parent e9f0a49077
commit b52df05565
3 changed files with 35 additions and 19 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ func (c *Cache) Refresh() error {
}
defer c.mu.Unlock()
for _, repo := range c.mirroredRepos {
for _, repo := range c.cfg.mirroredRepos {
if err := c.refreshDB(repo); err != nil {
return err
}