all repos — searchix @ d0795bbe26047bd8c270d51dec4a66edc69c2a6a

Search engine for NixOS, nix-darwin, home-manager and NUR users

refactor: use clearer name for fetcher function

Alan Pearce
commit

d0795bbe26047bd8c270d51dec4a66edc69c2a6a

parent

08a05b653047f4b45d1a4213e0af94b3dda1d4e0

1 file changed, 3 insertions(+), 3 deletions(-)

changed files
M internal/importer/main.gointernal/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 {