Remove nonvoter from metadata.Server

This commit is contained in:
Kyle Havlovitz 2018-01-24 16:14:11 -08:00
parent 7fb05d6c9c
commit 144e6e7d31
No known key found for this signature in database
GPG Key ID: 8A5E6B173056AD6C
1 changed files with 0 additions and 4 deletions

View File

@ -36,7 +36,6 @@ type Server struct {
Build version.Version
Version int
RaftVersion int
NonVoter bool
Addr net.Addr
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}
parts := &Server{
@ -160,7 +157,6 @@ func IsConsulServer(m serf.Member) (bool, *Server) {
Version: vsn,
RaftVersion: raft_vsn,
Status: m.Status,
NonVoter: nonVoter,
UseTLS: useTLS,
}
return true, parts