lib/sidekiq/dynamic_queues/server.rb in sidekiq-dynamic-queues-0.5.5 vs lib/sidekiq/dynamic_queues/server.rb in sidekiq-dynamic-queues-0.5.6
- old
+ new
@@ -20,12 +20,10 @@
app.get "/dynamicqueue" do
@queues = []
dqueues = Attr.get_dynamic_queues
dqueues.each do |k, v|
- fetch = Fetch.new(:queues => ["@#{k}"], :strict => true)
- expanded = fetch.queues_cmd
- expanded.pop
+ expanded = Attr.expand_queues(["@#{k}"])
expanded = expanded.collect {|q| q.split(":").last }
view_data = {
'name' => k,
'value' => Array(v).join(", "),
'expanded' => expanded.join(", ")
\ No newline at end of file