lib/zold/remotes.rb in zold-0.13.35 vs lib/zold/remotes.rb in zold-0.13.36

- old
+ new

@@ -171,12 +171,12 @@ raise 'Log can\'t be nil' if log.nil? raise 'Farm can\'t be nil' if farm.nil? best = farm.best[0] require_relative 'score' score = best.nil? ? Score::ZERO : best - start = Time.now idx = 0 all.each do |r| + start = Time.now begin yield Remotes::Remote.new(r[:host], r[:port], score, idx, log: log, network: @network) idx += 1 rescue StandardError => e error(r[:host], r[:port])