trivial: move CachingOptions out of content.Manager, where it's not needed (#775)

* trivial: move CachingOptions out of content.Manager, where it's not needed

* trivial: removed newManagerWithOptions which was the same as NewManager

also moved one-time initialization to newReadManager()
This commit is contained in:
Jarek Kowalski authored and GitHub committed 2021-01-07 18:51:15 -08:00
1 parent 8e17edcdf6
commit 73a34ff7ff
10 files changed
+30 -34

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ var (
)
func runCacheSetCommand(ctx context.Context, rep *repo.DirectRepository) error {
opts := rep.Content.CachingOptions.CloneOrDefault()
opts := rep.Cache.CloneOrDefault()
changed := 0