lib/zold/commands/push.rb in zold-0.22.0 vs lib/zold/commands/push.rb in zold-0.22.1
- old
+ new
@@ -26,10 +26,11 @@
require 'net/http'
require 'concurrent'
require_relative 'thread_badge'
require_relative 'args'
require_relative '../thread_pool'
+require_relative '../hands'
require_relative '../age'
require_relative '../size'
require_relative '../log'
require_relative '../id'
require_relative '../http'
@@ -83,10 +84,10 @@
default: 2
o.bool '--help', 'Print instructions'
end
mine = Args.new(opts, @log).take || return
list = mine.empty? ? @wallets.all : mine.map { |i| Id.new(i) }
- ThreadPool.new('push', log: @log).run(opts['threads'], list.uniq) do |id|
+ Hands.exec(opts['threads'], list.uniq) do |id|
push(id, opts)
end
end
private