lib/sidekiq/throttled/queue_name.rb in sidekiq-throttled-0.10.0.beta vs lib/sidekiq/throttled/queue_name.rb in sidekiq-throttled-0.10.0
- old
+ new
@@ -25,21 +25,21 @@
# # => "default"
#
# @param [#to_s]
# @return [String]
def normalize(queue)
- queue.to_s.sub(QUEUE_NAME_PREFIX_RE, "")
+ -queue.to_s.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 [#to_s] queue Queue name
# @return [String]
def expand(queue)
- "queue:#{queue}"
+ -"queue:#{queue}"
end
end
end
end
end