lib/zold/hungry_wallets.rb in zold-0.26.16 vs lib/zold/hungry_wallets.rb in zold-0.26.17
- old
+ new
@@ -56,10 +56,10 @@
@wallets.acq(id, exclusive: exclusive) do |wallet|
unless wallet.exists?
if @queue.size > 256
@log.error("Hungry queue is full with #{@queue.size} wallets, can't add #{id}")
elsif @missed.exists?(id.to_s)
- @log.debug("Hungry queue has seen #{id} just #{Age.new(@missed.mtime(id.to_s))} ago
+ @log.debug("Hungry queue has seen #{id} just #{Age.new(@missed.mtime(id.to_s))} ago \
(amoung #{@missed.size} others) and it was not found")
else
@mutex.synchronize do
unless @queue.include?(id)
@missed.put(id.to_s, lifetime: 5 * 60)