From 0e13889e0d28f95174d1d819a32286e0416168e4 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Wed, 13 Sep 2023 15:00:29 -0400 Subject: [PATCH] lint --- cmd/price-feeder.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/cmd/price-feeder.go b/cmd/price-feeder.go index 9b04388b..bd095ae7 100644 --- a/cmd/price-feeder.go +++ b/cmd/price-feeder.go @@ -62,7 +62,11 @@ func init() { rootCmd.PersistentFlags().String(flagLogLevel, zerolog.InfoLevel.String(), "logging level") rootCmd.PersistentFlags().String(flagLogFormat, logLevelText, "logging format; must be either json or text") rootCmd.PersistentFlags().Bool(flagSkipProviderCheck, false, "skip the coingecko API provider check") - rootCmd.PersistentFlags().Bool(flagChainConfig, false, "use on chain values for currency pair providers and deviations") + rootCmd.PersistentFlags().Bool( + flagChainConfig, + false, + "use on chain values for currency pair providers and deviations instead of config values", + ) rootCmd.AddCommand(getVersionCmd()) } @@ -183,7 +187,10 @@ func priceFeederCmdHandler(cmd *cobra.Command, args []string) error { ) if chainConfig { - oracle.LoadProviderPairsAndDeviations(ctx) + err := oracle.LoadProviderPairsAndDeviations(ctx) + if err != nil { + return err + } } telemetryCfg := telemetry.Config{}