lib/zold/node/async_entrance.rb in zold-0.14.44 vs lib/zold/node/async_entrance.rb in zold-0.14.45

- old
+ new

@@ -21,10 +21,11 @@ # SOFTWARE. require 'concurrent' require_relative '../log' require_relative '../age' +require_relative '../size' require_relative '../id' require_relative '../verbose_thread' # The async entrance of the web front. # Author:: Yegor Bugayenko (yegor256@gmail.com) @@ -116,10 +117,10 @@ end end return if id.empty? || body.empty? start = Time.now @entrance.push(Id.new(id), body) - @log.debug("Pushed #{id}/#{body.length}b to #{@entrance.class.name} in #{Age.new(start)}") + @log.debug("Pushed #{id}/#{Size.new(body.length)} to #{@entrance.class.name} in #{Age.new(start)}") end def queue Dir.new(@dir) .select { |f| f =~ /^[0-9a-f]{16}$/ }