Skip to content

Commit

Permalink
fix(cache): initialize the fetcher when creating the cache
Browse files Browse the repository at this point in the history
Initialize the fetcher when the cache is created using the NewFromConfig func.

Signed-off-by: Aldo Lacuku <[email protected]>
  • Loading branch information
alacuku committed Jul 6, 2023
1 parent 472ef3b commit 7a8efa3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/index/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ func NewFromConfig(ctx context.Context, indexFile, indexesDir string, indexes []
indexConfig := &indexConf.Config{}

c := &Cache{
fetcher: index.NewFetcher(),
localIndexes: indexConfig,
localIndexesFile: indexFile,
indexesDir: indexesDir,
Expand Down

0 comments on commit 7a8efa3

Please sign in to comment.