Add link to github project to footer, move FanOutOnWriteService calls to
DistributionWorker. That isn't the heaviest service, yet, but gotta start somewhere
This commit is contained in:
parent
42dcb0d4cb
commit
8eeec389c1
5 changed files with 29 additions and 7 deletions
7
app/workers/distribution_worker.rb
Normal file
7
app/workers/distribution_worker.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
class DistributionWorker
|
||||
include Sidekiq::Worker
|
||||
|
||||
def perform(status_id)
|
||||
FanOutOnWriteService.new.(Status.find(status_id))
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue