Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rbajollari committed Sep 13, 2023
1 parent d4f8285 commit 0e13889
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cmd/price-feeder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down Expand Up @@ -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{}
Expand Down

0 comments on commit 0e13889

Please sign in to comment.