From 1a814fb59d5b340b2595473fc06374e2c3506726 Mon Sep 17 00:00:00 2001 From: nick Date: Thu, 23 May 2024 18:37:51 +0900 Subject: [PATCH] fix: fix vet shadowing --- node/pkg/fetcher/app.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/node/pkg/fetcher/app.go b/node/pkg/fetcher/app.go index 101908f3c..651e6e3ae 100644 --- a/node/pkg/fetcher/app.go +++ b/node/pkg/fetcher/app.go @@ -347,9 +347,9 @@ func (a *App) initialize(ctx context.Context) error { a.Fetchers = make(map[int32]*Fetcher, len(configs)) a.Collectors = make(map[int32]*Collector, len(configs)) for _, config := range configs { - feeds, err := a.getFeeds(ctx, config.ID) - if err != nil { - return err + feeds, getFeedsErr := a.getFeeds(ctx, config.ID) + if getFeedsErr != nil { + return getFeedsErr } a.Fetchers[config.ID] = NewFetcher(config, feeds)