added config struct for cache so we can change timeouts in testing
This commit is contained in:
Vendored
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user