refactor: use clearer name for fetcher function
1 file changed, 3 insertions(+), 3 deletions(-)
changed files
M internal/importer/main.go → internal/importer/main.go
@@ -221,7 +221,7 @@ config *config.Config options *Options } -func (imp *Importer) Start( +func (imp *Importer) Fetch( ctx context.Context, forceUpdate bool, fetchOnly bool,@@ -299,7 +299,7 @@ return slices.Contains(cfgEnabledSources, s) }) if len(newSources) > 0 { imp.options.Logger.Info("adding new sources", "sources", newSources) - err := imp.Start( + err := imp.Fetch( ctx, false, false,@@ -355,7 +355,7 @@ MarkImportStarted() ctx, cancel := context.WithTimeout(parentCtx, imp.config.Importer.Timeout.Duration) - err := imp.Start(ctx, false, false, nil) + err := imp.Fetch(ctx, false, false, nil) if err != nil { imp.options.Logger.Warn("error fetching update", "error", err) } else {