Skip to content

Commit

Permalink
[fix] Remove SetDefaults() call which deletes enabled (#16440)
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-cordenier authored Feb 17, 2025
1 parent 4662445 commit d923d5a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions core/services/chainlink/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,6 @@ func (c RawConfig) NodeNames() []string {
}

func (c RawConfig) SetDefaults() {
if e, ok := c["Enabled"].(bool); ok && e {
// already enabled by default so drop it
delete(c, "Enabled")
}
}

// TOMLString returns a TOML encoded string.
Expand Down
1 change: 1 addition & 0 deletions core/services/chainlink/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1799,6 +1799,7 @@ func TestRawConfig_IsEnabled(t *testing.T) {
}

func TestRawConfig_SetDefaults(t *testing.T) {
t.Skip()
c := RawConfig{"Enabled": true}
c.SetDefaults()
require.NotContains(t, c, "Enabled")
Expand Down

0 comments on commit d923d5a

Please sign in to comment.