lib/zold/remotes.rb in zold-0.18.5 vs lib/zold/remotes.rb in zold-0.18.6

- old
+ new

@@ -192,10 +192,10 @@ idx = Concurrent::AtomicFixnum.new pool = Concurrent::FixedThreadPool.new([list.count, Concurrent.processor_count * 4].min, max_queue: 0) list.each do |r| pool.post do Thread.current.abort_on_exception = true - Thread.current.name = "remotes-#{idx}@#{r[:host]}:#{r[:port]}" + Thread.current.name = "remotes-#{idx.value}@#{r[:host]}:#{r[:port]}" start = Time.now begin yield Remotes::Remote.new( host: r[:host], port: r[:port],