lib/httpx/resolver/resolver_mixin.rb in httpx-0.6.2 vs lib/httpx/resolver/resolver_mixin.rb in httpx-0.6.3

- old
+ new

@@ -30,10 +30,10 @@ addresses.map! do |address| address.is_a?(IPAddr) ? address : IPAddr.new(address.to_s) end log(label: "resolver: ") { "answer #{connection.origin.host}: #{addresses.inspect}" } connection.addresses = addresses - emit(:resolve, connection) + catch(:coalesced) { emit(:resolve, connection) } end def early_resolve(connection, hostname: connection.origin.host) addresses = connection.addresses || ip_resolve(hostname) ||