Skip to content

Commit

Permalink
fix ambiguous SetDefaults selector on TOML config
Browse files Browse the repository at this point in the history
  • Loading branch information
aalu1418 committed Sep 26, 2024
1 parent 2c3e0d9 commit 12e490f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pkg/solana/config/toml.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ func setFromNode(n, f *Node) {
type TOMLConfig struct {
ChainID *string
// Do not access directly, use [IsEnabled]
Enabled *bool
Chain
MultiNode
Nodes Nodes
Enabled *bool
Chain Chain
MultiNode MultiNode
Nodes Nodes
}

func (c *TOMLConfig) IsEnabled() bool {
Expand Down Expand Up @@ -285,6 +285,10 @@ func (c *TOMLConfig) ListNodes() Nodes {
return c.Nodes
}

func (c *TOMLConfig) MultiNodeEnabled() bool {
return c.MultiNode.MultiNodeEnabled()
}

func (c *TOMLConfig) MultiNodeConfig() *MultiNode {
return &c.MultiNode
}
Expand Down

0 comments on commit 12e490f

Please sign in to comment.