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:11:24 -0400
committerGitHub <noreply@github.com>2017-04-07 22:11:24 -0400
commit451b7431c9d0a8bb34642d5af599bc48701376d2 (patch)
tree1be076bbade89fa78872d09b8961b5a183230e25 /app/workers/distribution_worker.rb
parent8fa8004a2b090a3911cce11473bb926ebd6782a6 (diff)
parent530725ba3c4fefc6fd3e45cda588daa5af2ea9ec (diff)
Merge branch 'master' into patch-2
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