Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
urvisavla committed Oct 3, 2023
1 parent 7af23a4 commit 052860b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions services/horizon/internal/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -709,11 +709,13 @@ func getCaptiveCoreConfigFromNetworkParameter(config *Config) (networkConfig, er
var defaultNetworkConfig networkConfig

if config.NetworkPassphrase != "" {
return defaultNetworkConfig, fmt.Errorf("invalid config: %s parameter not allowed with the %s parameter", NetworkPassphraseFlagName, NetworkFlagName)
return defaultNetworkConfig, fmt.Errorf("invalid config: %s parameter not allowed with the %s parameter",
NetworkPassphraseFlagName, NetworkFlagName)
}

if len(config.HistoryArchiveURLs) > 0 {
return defaultNetworkConfig, fmt.Errorf("invalid config: %s parameter not allowed with the %s parameter", HistoryArchiveURLsFlagName, NetworkFlagName)
return defaultNetworkConfig, fmt.Errorf("invalid config: %s parameter not allowed with the %s parameter",
HistoryArchiveURLsFlagName, NetworkFlagName)
}

switch config.Network {
Expand Down Expand Up @@ -765,7 +767,7 @@ func setCaptiveCoreConfiguration(config *Config, options ApplyOptions) error {
config.CaptiveCoreTomlParams.NetworkPassphrase = config.NetworkPassphrase

var err error
if options.RequireCaptiveCoreFullConfig == false {
if !options.RequireCaptiveCoreFullConfig {
// Creates a minimal captive-core config (without quorum information), just enough to run captive core.
// This is used by certain database commands, such as `reingest and fill-gaps, to reingest historical data.
config.CaptiveCoreToml, err = ledgerbackend.NewCaptiveCoreToml(config.CaptiveCoreTomlParams)
Expand Down

0 comments on commit 052860b

Please sign in to comment.