Skip to content

Commit

Permalink
Fix witness node
Browse files Browse the repository at this point in the history
  • Loading branch information
NHAS committed Jan 23, 2024
1 parent 74cded9 commit 7d09d13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions commands/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (g *start) Run() error {

error := make(chan error)

if config.Values.Clustering.WitnessNode {
if !config.Values.Clustering.Witness {

err = router.Setup(error, !g.noIptables)
if err != nil {
Expand Down Expand Up @@ -148,7 +148,7 @@ func (g *start) Run() error {
}()

wagType := "Wag"
if config.Values.Clustering.WitnessNode {
if config.Values.Clustering.Witness {
wagType = "Witness Node"
}

Expand Down
2 changes: 1 addition & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ type Config struct {
Peers map[string][]string
DatabaseLocation string
ETCDLogLevel string
WitnessNode bool
Witness bool
}

Authenticators struct {
Expand Down

0 comments on commit 7d09d13

Please sign in to comment.