Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nats-io/natscli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2c433d3159cf2514364bfe8c381bc13f5a744c68
Choose a base ref
..
head repository: nats-io/natscli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5e2c2a4cdf5b92b084024248f448226c0db80824
Choose a head ref
Showing with 5 additions and 1 deletion.
  1. +5 −1 cli/util.go
6 changes: 5 additions & 1 deletion cli/util.go
Original file line number Diff line number Diff line change
@@ -808,7 +808,11 @@ func renderCluster(cluster *api.ClusterInfo) string {
}
}
if r.Observer {
obs = append(obs, i)
if leader == 0 {
obs = append(obs, i+1)
} else {
obs = append(obs, i)
}
}
peers = append(peers, name)
}