From 25447c75e5259bb6fa10630bf1e5dfd4724b8424 Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Thu, 30 May 2013 21:13:59 -0700 Subject: [PATCH] Cleanup --- lib/sidekiq/web.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/sidekiq/web.rb b/lib/sidekiq/web.rb index 820faa02..1391b2f4 100644 --- a/lib/sidekiq/web.rb +++ b/lib/sidekiq/web.rb @@ -107,11 +107,11 @@ module Sidekiq args.map { |arg| a = arg.inspect; a.size > count ? "#{a[0..count]}..." : a }.join(", ") end - RETRY_JOB_KEYS = [ - "queue", "class", "args", "retry_count", "retried_at", "failed_at", - "retry", "jid", "error_message", "error_class", "backtrace", - "error_backtrace", "unique", "enqueued_at" - ] + RETRY_JOB_KEYS = Set.new(%w( + queue class args retry_count retried_at failed_at + jid error_message error_class backtrace + error_backtrace enqueued_at + )) def retry_extra_items(retry_job) @retry_extra_items ||= {}.tap do |extra|