From: Eugen Rochko Date: Wed, 5 Apr 2017 11:28:46 +0000 (+0200) Subject: Replace ActionCable broadcast call with simple redis publish X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=8530f9413b86e0734ed9e0be93f0168a070f9ac8;p=mastodon.git Replace ActionCable broadcast call with simple redis publish --- diff --git a/app/lib/feed_manager.rb b/app/lib/feed_manager.rb index 2cca1cefe..88f6f4a46 100644 --- a/app/lib/feed_manager.rb +++ b/app/lib/feed_manager.rb @@ -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)