Remove nonvoter from metadata.Server
This commit is contained in:
parent
9c1a3a0753
commit
32dbb51c3b
|
@ -36,7 +36,6 @@ type Server struct {
|
||||||
Build version.Version
|
Build version.Version
|
||||||
Version int
|
Version int
|
||||||
RaftVersion int
|
RaftVersion int
|
||||||
NonVoter bool
|
|
||||||
Addr net.Addr
|
Addr net.Addr
|
||||||
Status serf.MemberStatus
|
Status serf.MemberStatus
|
||||||
|
|
||||||
|
@ -140,8 +139,6 @@ func IsConsulServer(m serf.Member) (bool, *Server) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_, nonVoter := m.Tags["nonvoter"]
|
|
||||||
|
|
||||||
addr := &net.TCPAddr{IP: m.Addr, Port: port}
|
addr := &net.TCPAddr{IP: m.Addr, Port: port}
|
||||||
|
|
||||||
parts := &Server{
|
parts := &Server{
|
||||||
|
@ -160,7 +157,6 @@ func IsConsulServer(m serf.Member) (bool, *Server) {
|
||||||
Version: vsn,
|
Version: vsn,
|
||||||
RaftVersion: raft_vsn,
|
RaftVersion: raft_vsn,
|
||||||
Status: m.Status,
|
Status: m.Status,
|
||||||
NonVoter: nonVoter,
|
|
||||||
UseTLS: useTLS,
|
UseTLS: useTLS,
|
||||||
}
|
}
|
||||||
return true, parts
|
return true, parts
|
||||||
|
|
Loading…
Reference in New Issue