// IsEqualTo returns true if this and the provided server are the same server.
IsEqualTo returns true if this and the provided server are the same server.
// IsEqualTo returns true if this and the provided server are the same server .
func (s *Server) IsEqualTo(other Server) bool {
	return s.AdvertiseIP == other.AdvertiseIP &&
		s.Hostname == other.Hostname &&
		s.Role == other.Role
}
func ( s * Server ) IsEqualTo ( other Server ) bool { return s . AdvertiseIP == other . AdvertiseIP && s . Hostname == other . Hostname && s . Role == other . Role }
IsEqualTo returns true if this and the provided server are the same server.
IsEqualTo returns true if this and the provided server are the same server .
// Compare only a few "main" fields that should give enough confidence // in deciding whether it's the same node or not.