@@ -42,7 +42,7 @@ func (httpError *HttpError) Error() string {
4242type MembershipResponse struct {
4343 AllNodes []string `json:"all_nodes"`
4444 ClusterNodes []string `json:"cluster_nodes"`
45- SingleNode string `json:"name"`
45+ SingleNode string `json:"name"`
4646}
4747
4848func (c * CouchdbClient ) getNodeInfo (uri string ) (NodeInfo , error ) {
@@ -84,7 +84,7 @@ func (c *CouchdbClient) isCouchDbV1() (bool, error) {
8484func (c * CouchdbClient ) GetNodeNames (localOnly bool ) ([]string , error ) {
8585 var nodeDiscovery string = "_membership"
8686 if localOnly {
87- nodeDiscovery = "_node/_local"
87+ nodeDiscovery = "_node/_local"
8888 }
8989 data , err := c .Request ("GET" , fmt .Sprintf ("%s/%s" , c .BaseUri , nodeDiscovery ), nil )
9090 if err != nil {
@@ -96,7 +96,7 @@ func (c *CouchdbClient) GetNodeNames(localOnly bool) ([]string, error) {
9696 return nil , err
9797 }
9898 if localOnly {
99- membership .ClusterNodes = append (membership .ClusterNodes ,membership .SingleNode )
99+ membership .ClusterNodes = append (membership .ClusterNodes , membership .SingleNode )
100100 }
101101 // for i, name := range membership.ClusterNodes {
102102 // slog.Infof("node[%d]: %s\n", i, name)
0 commit comments