]> cat aescling's git repositories - mastodon.git/commitdiff
Replace ActionCable broadcast call with simple redis publish
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 5 Apr 2017 11:28:46 +0000 (13:28 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 5 Apr 2017 11:28:46 +0000 (13:28 +0200)
app/lib/feed_manager.rb

index 2cca1cefe4f7a6a71fbb89e36edc2a748e8ff891..88f6f4a468d84dc07c3f41a0b56db4fc45015f42 100644 (file)
@@ -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)