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 {
55
55
ScriptAddress string `yaml:"scriptAddress" envconfig:"INDEXER_SCRIPT_ADDRESS"`
56
56
InterceptHash string `yaml:"interceptHash" envconfig:"INDEXER_INTERCEPT_HASH"`
57
57
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"`
61
61
}
62
62
63
63
type StateConfig struct {
@@ -140,7 +140,8 @@ func Load(configFile string) (*Config, error) {
140
140
}
141
141
}
142
142
// 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 == "" {
144
145
if profile .InterceptHash != "" && profile .InterceptSlot > 0 {
145
146
globalConfig .Indexer .InterceptHash = profile .InterceptHash
146
147
globalConfig .Indexer .InterceptSlot = profile .InterceptSlot
Original file line number Diff line number Diff line change @@ -67,7 +67,10 @@ func (s *State) compareFingerprint() error {
67
67
}
68
68
err = item .Value (func (v []byte ) error {
69
69
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
+ )
71
74
}
72
75
return nil
73
76
})
You can’t perform that action at this time.
0 commit comments