1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Update singletons

This commit is contained in:
Mike Perham 2012-08-05 20:53:59 -07:00
parent c9b40def98
commit 58db628a82

View file

@ -57,9 +57,6 @@ module Sidekiq
private
# Singleton classes are not clonable.
SINGLETON_CLASSES = [ NilClass, TrueClass, FalseClass, Numeric, Symbol ].freeze
def stats(worker, msg, queue)
redis do |conn|
conn.multi do
@ -93,6 +90,9 @@ module Sidekiq
end
end
# Singleton classes are not clonable.
SINGLETON_CLASSES = [ NilClass, TrueClass, FalseClass, Symbol, Fixnum, Float ].freeze
# Clone the arguments passed to the worker so that if
# the message fails, what is pushed back onto Redis hasn't
# been mutated by the worker.