lib/zold/node/farm.rb in zold-0.21.1 vs lib/zold/node/farm.rb in zold-0.21.2

- old
+ new

@@ -1,8 +1,8 @@ # frozen_string_literal: true -# Copyright (c) 2018 Yegor Bugayenko +# Copyright (c) 2018-2019 Zerocracy, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the 'Software'), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell @@ -63,10 +63,10 @@ @log = log @cache = File.expand_path(cache) @invoice = invoice @pipeline = Queue.new @farmer = farmer - @threads = ThreadPool.new('farm') + @threads = ThreadPool.new('farm', log: log) @lifetime = lifetime @strength = strength end # Returns the list of best scores the farm managed to find up to now. The