class AmokTime::SidekiqMiddleware::Client

Get the mocked time and store it in the message to be sent to Sidekiq.

Public Instance Methods

call(worker_class, msg, queue, redis_pool) { || ... } click to toggle source
# File lib/amok_time/sidekiq_middleware.rb, line 6
def call(worker_class, msg, queue, redis_pool)
  msg['amok_time'] ||= Thread.current[:amok_time]
  yield
end