Close will do anything that is needed to close the cache properly
()
| 71 | |
| 72 | // Close will do anything that is needed to close the cache properly |
| 73 | func (c *MultiRepoCache) Close() error { |
| 74 | for _, cachedRepo := range c.repos { |
| 75 | err := cachedRepo.Close() |
| 76 | if err != nil { |
| 77 | return err |
| 78 | } |
| 79 | } |
| 80 | return nil |
| 81 | } |