lib/sidekiq/throttled/queue_name.rb in sidekiq-throttled-0.6.6 vs lib/sidekiq/throttled/queue_name.rb in sidekiq-throttled-0.6.7
- old
+ new
@@ -25,21 +25,21 @@
# # => "default"
#
# @param [String]
# @return [String]
def normalize(queue)
- queue.sub(QUEUE_NAME_PREFIX_RE, "".freeze)
+ queue.sub(QUEUE_NAME_PREFIX_RE, "")
end
# Prepends `queue:` prefix to given `queue` name.
#
# @note It does not normalizes queue before expanding it, thus
# double-call of this method will potentially do some harm.
#
# @param [String] queue Queue name
# @return [String]
def expand(queue)
- "queue:#{queue}".freeze
+ "queue:#{queue}"
end
end
end
end
end