about summary refs log tree commit diff
path: root/app/workers/distribution_worker.rb
diff options
context:
space:
mode:
authorShel R <Yiskah.Raphen@gmail.com>2017-04-07 22:21:21 -0400
committerGitHub <noreply@github.com>2017-04-07 22:21:21 -0400
commitfef478781d1033ba045806945f84cbab1bdb0007 (patch)
treecf99ed9130e2226f13e52f87dc7bbe8a9b464ee2 /app/workers/distribution_worker.rb
parentbf7cefa516075b480fd5da5ea4b1385d7d17bdd5 (diff)
parentc1a553d2c274941f38cc299699dfae1f60559e67 (diff)
Merge branch 'master' into master
Diffstat (limited to 'app/workers/distribution_worker.rb')
-rw-r--r--app/workers/distribution_worker.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/workers/distribution_worker.rb b/app/workers/distribution_worker.rb
index 9a2867ea6..f7953689b 100644
--- a/app/workers/distribution_worker.rb
+++ b/app/workers/distribution_worker.rb
@@ -4,10 +4,7 @@ class DistributionWorker < ApplicationWorker
   include Sidekiq::Worker
 
   def perform(status_id)
-    status = Status.find(status_id)
-
-    FanOutOnWriteService.new.call(status)
-    WarmCacheService.new.call(status)
+    FanOutOnWriteService.new.call(Status.find(status_id))
   rescue ActiveRecord::RecordNotFound
     info("Couldn't find the status")
   end