We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebcfbb4 commit 52fed65Copy full SHA for 52fed65
lib/action_cable/subscription_adapter/solid_cable.rb
@@ -45,7 +45,7 @@ def initialize(event_loop)
45
46
@thread = Thread.new do
47
Thread.current.abort_on_exception = true
48
- listen
+ Rails.application.executor.wrap { listen }
49
end
50
51
@@ -96,12 +96,10 @@ def channels
96
97
98
def broadcast_messages
99
- Rails.application.executor.wrap do
100
- ::SolidCable::Message.broadcastable(channels, last_id).
101
- each do |message|
102
- broadcast(message.channel, message.payload)
103
- self.last_id = message.id
104
- end
+ ::SolidCable::Message.broadcastable(channels, last_id).
+ each do |message|
+ broadcast(message.channel, message.payload)
+ self.last_id = message.id
105
106
107
0 commit comments