// AllNodes return all memberlist nodes except dead and left nodes
AllNodes return all memberlist nodes except dead and left nodes
// AllNodes return all memberlist nodes except dead and left nodes
func AllNodes() ([]*memberlist.Node, error) {
	if mlist == nil {
		return nil, errors.New("mlist is nil")
	}
	var nodes []*memberlist.Node
	for _, node := range mlist.Members() {
		logrus.Debugf("Member: %s %s\n", node.Name, node.Addr)
		nodes = append(nodes, node)
	}
	return nodes, nil
}
func AllNodes ( ) ( [ ] * memberlist . Node , error ) { if mlist == nil { return nil , errors . New ( " " ) } var nodes [ ] * memberlist . Node for _ , node := range mlist . Members ( ) { logrus . Debugf ( " \n " , node . Name , node . Addr ) nodes = append ( nodes , node ) } return nodes , nil }
AllNodes return all memberlist nodes except dead and left nodes
AllNodes return all memberlist nodes except dead and left nodes