lib/zold/commands/push.rb in zold-0.20.3 vs lib/zold/commands/push.rb in zold-0.20.4
- old
+ new
@@ -75,11 +75,11 @@
default: false
o.array '--ignore-node',
'Ignore this node and don\'t push to it',
default: []
o.integer '--threads',
- "How many threads to use for pushing wallets (default: #{[Concurrent.processor_count / 2, 2].max})",
- default: [Concurrent.processor_count / 2, 2].max
+ 'How many threads to use for pushing wallets (default: 1)',
+ default: 1
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|