Replace ActionCable broadcast call with simple redis publish

feature-private-federation
Eugen Rochko 2017-04-05 13:28:46 +02:00
parent f8a5ff95ec
commit 8530f9413b
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class FeedManager
def broadcast(timeline_id, options = {}) def broadcast(timeline_id, options = {})
options[:queued_at] = (Time.now.to_f * 1000.0).to_i options[:queued_at] = (Time.now.to_f * 1000.0).to_i
ActionCable.server.broadcast("timeline:#{timeline_id}", options) redis.publish("timeline:#{timeline_id}", Oj.dump(options))
end end
def trim(type, account_id) def trim(type, account_id)