File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,9 @@ type IndexerConfig struct {
5555 ScriptAddress string `yaml:"scriptAddress" envconfig:"INDEXER_SCRIPT_ADDRESS"`
5656 InterceptHash string `yaml:"interceptHash" envconfig:"INDEXER_INTERCEPT_HASH"`
5757 InterceptSlot uint64 `yaml:"interceptSlot" envconfig:"INDEXER_INTERCEPT_SLOT"`
58- Tld string `yaml:"tld" envconfig:"INDEXER_TLD"`
59- PolicyId string `yaml:"policyId" envconfig:"INDEXER_POLICY_ID"`
60- Verify bool `yaml:"verify" envconfig:"INDEXER_VERIFY"`
58+ Tld string `yaml:"tld" envconfig:"INDEXER_TLD"`
59+ PolicyId string `yaml:"policyId" envconfig:"INDEXER_POLICY_ID"`
60+ Verify bool `yaml:"verify" envconfig:"INDEXER_VERIFY"`
6161}
6262
6363type StateConfig struct {
@@ -140,7 +140,8 @@ func Load(configFile string) (*Config, error) {
140140 }
141141 }
142142 // Provide default intercept point from profile
143- if globalConfig .Indexer .InterceptSlot == 0 || globalConfig .Indexer .InterceptHash == "" {
143+ if globalConfig .Indexer .InterceptSlot == 0 ||
144+ globalConfig .Indexer .InterceptHash == "" {
144145 if profile .InterceptHash != "" && profile .InterceptSlot > 0 {
145146 globalConfig .Indexer .InterceptHash = profile .InterceptHash
146147 globalConfig .Indexer .InterceptSlot = profile .InterceptSlot
Original file line number Diff line number Diff line change @@ -67,7 +67,10 @@ func (s *State) compareFingerprint() error {
6767 }
6868 err = item .Value (func (v []byte ) error {
6969 if string (v ) != fingerprint {
70- return fmt .Errorf ("config fingerprint in DB doesn't match current config: %s" , v )
70+ return fmt .Errorf (
71+ "config fingerprint in DB doesn't match current config: %s" ,
72+ v ,
73+ )
7174 }
7275 return nil
7376 })
You can’t perform that action at this time.
0 commit comments