lib/elasticsearch/transport/transport/connections/connection.rb in elasticsearch-transport-7.8.1 vs lib/elasticsearch/transport/transport/connections/connection.rb in elasticsearch-transport-7.9.0.pre
- old
+ new
@@ -133,17 +133,18 @@
@state_mutex.synchronize {
Time.now > @dead_since + ( @options[:resurrect_timeout] * 2 ** (@failures-1) )
}
end
- # Equality operator based on connection protocol, host and port
+ # Equality operator based on connection protocol, host, port and attributes
#
# @return [Boolean]
#
def ==(other)
self.host[:protocol] == other.host[:protocol] && \
self.host[:host] == other.host[:host] && \
- self.host[:port].to_i == other.host[:port].to_i
+ self.host[:port].to_i == other.host[:port].to_i && \
+ self.host[:attributes] == other.host[:attributes]
end
# @return [String]
#
def to_s