do not scan for tags while refreshing cache

This commit is contained in:
Tan Jiang 2016-06-28 18:08:39 +08:00
parent 32d981ef88
commit 949d10f299

View File

@ -66,7 +66,7 @@ func RefreshCatalogCache() error {
if err != nil { if err != nil {
return err return err
} }
/*
repos := []string{} repos := []string{}
for _, repo := range rs { for _, repo := range rs {
@ -90,8 +90,9 @@ func RefreshCatalogCache() error {
log.Debugf("add %s to catalog cache", repo) log.Debugf("add %s to catalog cache", repo)
} }
} }
*/
Cache.Put(catalogKey, repos, 600*time.Second) Cache.Put(catalogKey, rs, 600*time.Second)
return nil return nil
} }