Skip to content

Commit d51c544

Browse files
authored
chore: format/golines (#151)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent df1e09e commit d51c544

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

internal/config/config.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

6363
type 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

internal/state/state.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)