ensure statistic collection is on

This commit is contained in:
Sam 2015-09-03 12:00:19 +10:00
parent 48f0323032
commit 25fb684565

View file

@ -6,9 +6,11 @@ end
Sidekiq.configure_server do |config|
config.redis = Discourse.sidekiq_redis_config
# add our pausable middleware
config.server_middleware do |chain|
chain.add Sidekiq::Pausable
# ensure statistic middleware is included in case of a fork
chain.add Sidekiq::Statistic::Middleware
end
end