Skip to content
Snippets Groups Projects
Commit 8530f941 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Replace ActionCable broadcast call with simple redis publish

parent f8a5ff95
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ class FeedManager
def broadcast(timeline_id, options = {})
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
def trim(type, account_id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment