lib/zold/node/async_entrance.rb in zold-0.14.8 vs lib/zold/node/async_entrance.rb in zold-0.14.9

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + # Copyright (c) 2018 Yegor Bugayenko # # 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 @@ -75,13 +77,11 @@ end end def to_json @entrance.to_json.merge( - 'pool.completed_task_count': @pool.completed_task_count, - 'pool.largest_length': @pool.largest_length, + 'queue': queue.count, 'pool.length': @pool.length, - 'pool.queue_length': @pool.queue_length, 'pool.running': @pool.running? ) end def push(id, body)